bevacqua / woofmark

:dog2: Barking up the DOM tree. A modular, progressive, and beautiful Markdown and HTML editor
https://bevacqua.github.io/woofmark
MIT License
1.62k stars 74 forks source link

set scrollTop on mode change #26

Open jywarren opened 8 years ago

jywarren commented 8 years ago

I find that when i switch modes, the browser scroll position (document.body.scrollTop) shifts, which is disorienting. Any interest in saving and/or adjusting for the scroll position when changing modes? I've tested this in my own code by storing scrollTop before the change and then setting it after the change.