Force scrolling before cursor reach the end of the visible part

Hello,

Is it possible to force horizontal scrolling before the cursor is at the right/left margin of the visible textarea? Let’s say: 5 characters before…

Thanks

No, this only exists for vertical scrolling. To do something like that for horizontal cursor position you’d have to register your own "cursorActivity" event handler.

Thanks.

I see that I can do it by combining txtEditor.getScrollInfo() and txtEditor.cursorCoords() inside the handler, but after doing some experiments it doesn’t seem a good idea to make such a feature (then I see why you did not add it)