microsoft / vscode

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

Cursor Cannot Remain Outside Narrow Vertical Center #230740

Open blewis2-blue opened 3 weeks ago

blewis2-blue commented 3 weeks ago

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

Actual Behavior

Expected Behavior

Steps To Reproduce

  1. Start a new, empty session with code and create a new file.
  2. Hold enter/return until there are enough lines to fully fill the editor's visual space.
  3. OBSERVE: the new lines never reach the visual bottom of the editor, instead scrolling to keep the cursor nearer to vertical center.
  4. Scroll the view so that the last line appears at the bottom of the editor, and place the cursor on the last line.
  5. Press "A"
  6. OBSERVE: the scroll position is moved, placing the cursor and "A" visually nearer to vertical center.
  7. Place the cursor at the line currently at the top of the editor view and press "B"
  8. OBSERVE: the scroll position is moved, placing the cursor and "B" visually nearer to vertical center.
  9. Select the text on the line containing "B" and begin dragging the selection.
  10. Drag it towards the bottom.
  11. OBSERVE: scrolling begins while the drag point is still near vertical center, instead of beginning at the bottom of the editor
  12. Drag it towards the top.
  13. OBSERVE: scrolling begins while the drag point is still near vertical center, instead of beginning at the top of the editor.

Impact

blewis2-blue commented 2 weeks ago

This is a duplicate of #227750