microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.02k stars 29.2k forks source link

Editor sticky scroll causes scroll when editing line #227792

Open lausfl opened 1 month ago

lausfl commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes

With editor sticky scroll enabled, any edit of a line near the top or bottom of the screen causes the editor to randomly vertically scroll that line towards the center when edited

Steps to Reproduce:

  1. Enable editor sticky scroll
  2. Open a file with more lines than the editor can display at once and scroll down a bit
  3. Edit a line that is near the bottom or top of the screen
  4. The editor automatically scrolls that edited line towards the center of the screen
SuperLlama88888 commented 1 month ago

This is the same as #227750, glad to know I'm not the only one with this issue.

blewis2-blue commented 2 weeks ago

This is the same as #227750, glad to know I'm not the only one with this issue.

@lausfl, if you 👍 that issue it might get more attention. I have the same issue: #230740.