You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that when editing near the bottom of a file, and using editing commands such as "Shift-ArrowKey" to select text, the editor view jumps up to the beginning of the file.
I could record it happening here (my keypresses are visible bottom right) - see attached screen recording.
To Reproduce
Edit a file near the bottom of the View
Select text using Shift-Arrow
Expected Behavior
The editor window shouldnt move on its own.
Version Information
CodeEditTextView: main branch
macOS: [e.g. 13.6.2]
Yes, same thing still happens - just tested it on a document that is just long enough so that the editor view scrolls.
Selecting text with Shift+ causes the editor to automatically jump/scroll to the top. This happens anywhere in the file, as long as the view itself is scrolled up a bit. After the editor jumps, I can't see the cursor anymore, but the text insertion point doesn't change.
Activity
thecoolwinter commentedon Feb 6, 2024
Can you confirm if this issue is still happening? We merged the new text view the day this was opened, but have made a bunch of changes since then.
nkleemann commentedon Feb 6, 2024
Yes, same thing still happens - just tested it on a document that is just long enough so that the editor view scrolls.
Selecting text with Shift+ causes the editor to automatically jump/scroll to the top. This happens anywhere in the file, as long as the view itself is scrolled up a bit. After the editor jumps, I can't see the cursor anymore, but the text insertion point doesn't change.
thecoolwinter commentedon Feb 7, 2024
Thanks for the update, I'll look into this.
(fix: #28) Update scrollToVisible Loop (#29)