opus1269 / smooth-scroller

Smooth and inertial scrolling for IntelliJ
https://plugins.jetbrains.com/plugin/8246
MIT License
18 stars 6 forks source link

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

Open DeflatedPickle opened 4 years ago

DeflatedPickle commented 4 years ago

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.