Script-editor window "flickers" while using arrow keys to move cursor

There have been some similar bugs, but this one’s entirely about using the arrow keys to scroll.

While using arrow keys in the script editor to move around your code after clicking anywhere near the edge of the window and letting it scroll automatically by pressing the right or left arrow key,
as you scroll upwards or downwards by holding the up or down arrow keys immediately after that (without further clicking anywhere and not using the right or left arrow keys after it automatically scrolls) the screen flickers temporarily because the cursor moves to the end of the screen quickly, this is noticeable when you’ve got a lot of nested code or code in one line.

This demonstrates:


^ a script with random code

The cursor doesn’t move through your code, but rather moves towards the end really quick causing a flicker and buggy scrolling.

Scrolling using the scrollbar or scrolling after clicking anywhere causes this not to happen, and the cursor then moves through the code.

The date this bug started occurring is not known and occurs only in the Studio script-editor.

1 Like

Hi thank you so much for sending this our way. I believe this is long standing… it looks like we’re sticky with “end-of-line” regardless of line length. The fact that you have lines exceeding current view port means the cursor ‘snaps’ to the end of line, and then back again quickly. Of course that is unpleasant to see.

Options forward I see:

  1. support word wrap by default (need to consider how this interacts with our existing column guide, but seems quite reasonable)
  2. change the way arrow navigation works to be MIN(‘current character offset’ , ‘desitination-line-length’)

We will file and track to resolution! Again thank you so much for bringing attention here.

2 Likes