markdown-editor icon indicating copy to clipboard operation
markdown-editor copied to clipboard

Editing forces view to automatically scroll unjustly

Open gima opened this issue 10 years ago • 1 comments

It's useful to see "the full picture" of how the output looks. This new feature makes it hard, as it forcibly scrolls the edited portion into the top of the view pane.

It would be nice if the scrolling didn't happen when the text that's being edited is already in view. It's perfectly valid to scroll the edited portion into view when it's Not visible.

gima avatar Mar 27 '15 11:03 gima

Agreed - the current logic for scrolling is as in #12 which I think is definitely better than not scrolling at all. I'll have another look and see if it can be improved at all. I think using scrollIntoViewIfNeeded might improve things somewhat.

jbt avatar Mar 27 '15 11:03 jbt