My system is OS X 10.11 and Sublime Text 3 build 3107, with scroll_past_end=true.
Steps to reproduce:
- Open a new buffer.
- Press enter.
- Using a trackpad with inertial scrolling, quickly scroll the second line toward the top of the screen, until the view cannot scroll further.
- Press enter.
Result:
A new line will be inserted, and Sublime Text will immediately scroll the view so the new line is the only visible line. Pressing enter repeatedly (slowly, giving Sublime time to scroll the line off the screen) will repeat this phenomenon.
Expected result:
Sublime should not scroll the view at this point, as the new line would already be visible.
Note:
If the topmost visible line is a few pixels from the top of the screen, this will not happen. If I scroll using the scrollbar on the side of the screen, this will not happen.
I feel like the trackpad’s inertial scrolling is pushing the view a bit past the normal allowed position and causing it to think the topmost line isn’t fully on the screen, so it scrolls it one line onto the screen while inserting a line.