CodeEditApp / CodeEditTextView

A text editor specialized for displaying and editing code documents. Written in pure Swift.

Home Page:https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 Editor randomly jumps up on it's own

nkleemann opened this issue Β· comments

commented

Description

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

  1. Edit a file near the bottom of the View
  2. 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]

Additional Context

No response

Screenshots

Screen Recording

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.

commented

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.

Thanks for the update, I'll look into this.