smooth-scroller icon indicating copy to clipboard operation
smooth-scroller copied to clipboard

Scrolls in small increments when typing with the caret out of view

Open DeflatedPickle opened this issue 3 years ago • 0 comments

If you have a large file, place the caret down somewhere, then scroll till it's out of view; typing will incrementally scroll the pane towards the caret in small steps. Normally, the pane would be scrolled directly to where the caret is.

I think this could be solved with an if to check if the caret is out of view, find how far away it is from the middle (top?) of the view, then add enough force to smoothly scroll to the caret being in the middle of the view.

DeflatedPickle avatar Oct 22 '20 20:10 DeflatedPickle