Window changes scrolling when gaining focus with text selected

Questions & Answers

Moderators: fgagnon, nikos, Site Mods

Post Reply
BBMan
Member
Member
Posts: 9
Joined: 2021 Dec 03, 00:26

Window changes scrolling when gaining focus with text selected

Post 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?
User avatar
nikos
Site Admin
Site Admin
Posts: 15977
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: Window changes scrolling when gaining focus with text selected

Post by nikos »

I can't reproduce that, do you have the latest version 2.99?
BBMan
Member
Member
Posts: 9
Joined: 2021 Dec 03, 00:26

Re: Window changes scrolling when gaining focus with text selected

Post by BBMan »

I have version 2.9.9.3 Unicode x64 on Windows 11 Home.

I observe the same behavior on multiple computers.
BBMan
Member
Member
Posts: 9
Joined: 2021 Dec 03, 00:26

Re: Window changes scrolling when gaining focus with text selected

Post 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
User avatar
nikos
Site Admin
Site Admin
Posts: 15977
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: Window changes scrolling when gaining focus with text selected

Post by nikos »

weird, but still not reproducible on my win11
perhaps some accessibility feature you have turned on or installed :shrug:
BBMan
Member
Member
Posts: 9
Joined: 2021 Dec 03, 00:26

Re: Window changes scrolling when gaining focus with text selected

Post 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!
Post Reply