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.
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.