davidbalbert / Watt

A high performance text editor for macOS.
MIT License
57 stars 2 forks source link

Inserting a newline into a paragraph that's cut off by the top of the viewport scrolls to the wrong location #126

Open davidbalbert opened 6 months ago

davidbalbert commented 6 months ago

To reproduce

  1. Put the cursor into a multi-line paragraph.
  2. Scroll down so that paragraph is partially out of the viewport but the cursor is still in the viewport
  3. Press return

Expected behavior

The document doesn't scroll

Actual behavior

The document scrolls so the cursor is at the top of the viewport.