RMichelsen / Nvy

Nvy - A Neovim client in C++
MIT License
333 stars 28 forks source link

Smoother scrolling #98

Closed Zorbn closed 1 year ago

Zorbn commented 1 year ago

Buffer scroll events that are less than one WHEEL_DELTA. That way scrolling speed is independent from the number of scroll events sent. This makes scrolling smooth on a touchpad while still keeping mouse wheel scrolling the same (at least for mouse wheels that scroll in increments of WHEEL_DELTA, mouse wheels that scroll smoothly were probably too sensitive before and will be helped by this change).

With this patch the scrolling behavior becomes similar to Windows Terminal. The scroll amount is still determined by Neovim's mousescroll variable.

Zorbn commented 1 year ago

This likely addresses the issues mentioned in #87.

RMichelsen commented 1 year ago

I've tested on my end now and its definitely an improvement so I will merge. 👍