vscode-sync-scroll icon indicating copy to clipboard operation
vscode-sync-scroll copied to clipboard

Erratic behavior if "Cursor Surrounding Lines" > 0 and/or "Smooth Scrolling" is set

Open gasparschott opened this issue 4 years ago • 0 comments

If the Editor pref "Cursor Surrounding Lines" is set to be greater than 0 (e.g., 6 lines) and/or if "Smooth Scrolling" is set, sync scrolling gets confused and results in erratic up and down scrolling or continued scrolling in one or both panes even after the user has stopped actively scrolling. I encountered a similar problem in a split editor HTML project I was working on; in my case it was a rounding issue in the math when working with the height of iframe/textarea elements and the scroll position. My solution was to round numbers to at most 1 or 2 decimal places.

gasparschott avatar Jul 18 '21 22:07 gasparschott