mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
fix Scroll Into View
This commit is contained in:
@@ -72,9 +72,10 @@ function init_tiny(size) {
|
||||
});
|
||||
editor.on('ScrollIntoView', (e) => {
|
||||
e.preventDefault();
|
||||
let offset = e.elm.offsetTop + 60;
|
||||
console.log(e)
|
||||
document.scrollingElement.scrollTo({top:offset})
|
||||
e.elm.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
block: 'nearest',
|
||||
});
|
||||
});
|
||||
|
||||
editor.on('keyup', onChange);
|
||||
|
||||
Reference in New Issue
Block a user