Page 1 of 1

Window changes scrolling when gaining focus with text selected

Posted: 2024 Mar 19, 02:33
by BBMan
Not sure if this is a bug or a feature:

When text is selected and the document has more lines than the window height (i.e. vertical scrollbars are present), the following causes the window to automatically scroll so that the top line of the highlighted text is at the top of the window:
  • Select text
  • Scroll the window so the first line of the selected text is not in the viewable area
  • Change window focus to another window
  • Change window focus back to Editor2
Is this behavior intentional?

Re: Window changes scrolling when gaining focus with text selected

Posted: 2024 Mar 19, 05:44
by nikos
I can't reproduce that, do you have the latest version 2.99?

Re: Window changes scrolling when gaining focus with text selected

Posted: 2024 Mar 19, 20:50
by BBMan
I have version 2.9.9.3 Unicode x64 on Windows 11 Home.

I observe the same behavior on multiple computers.

Re: Window changes scrolling when gaining focus with text selected

Posted: 2024 Mar 20, 00:09
by BBMan
It turns out that text doesn't need to be selected. If no text is selected, the window scrolls such that the cursor is at the top of the window.

Below is a video link (expires in 2 days) with selected text. Note that window is scrolled using the mouse wheel to position the selected text out of the viewable area.

https://streamable.com/kcn02y

Re: Window changes scrolling when gaining focus with text selected

Posted: 2024 Mar 20, 08:07
by nikos
weird, but still not reproducible on my win11
perhaps some accessibility feature you have turned on or installed :shrug:

Re: Window changes scrolling when gaining focus with text selected

Posted: 2024 Mar 20, 18:05
by BBMan
I don't intentionally have any accessiblity options enabled. Also, I have a minimum number of applications runnning at startup.

I guess I'll just have to live with the behavior.

Thanks for looking into it!