Hi! This is an attempt to improve handling of trackpad scrolling in NvimView.
The idea is to simulate 1:1 scrolling by dividing the scroll delta by cellSize.height,
and keep the remainder in a counter for the next iteration.
This works better than taking ceil, especially when the scrolling speed is slower.
I have also temporarily removed trackpadScrollResistance from the calculation,
as the scrolling speed no longer feels too fast to me after these changes.
Hi! This is an attempt to improve handling of trackpad scrolling in
NvimView
.The idea is to simulate 1:1 scrolling by dividing the scroll delta by
cellSize.height
, and keep the remainder in a counter for the next iteration. This works better than takingceil
, especially when the scrolling speed is slower.I have also temporarily removed
trackpadScrollResistance
from the calculation, as the scrolling speed no longer feels too fast to me after these changes.