Disable smooth scroll in small windows...
Closed this issue · 1 comments
Is there any option to disable smooth scroll in small-height windows, I think it is better to scroll these few lines immediately without experiencing this non-smooth scroll.
simplescreenrecorder-2022-02-23_00.27.36-reduced.mp4
I understand your concern but this functionality is out of scope for this plugin. The plugin just provides a function (neoscroll.scroll()
) you can use to scroll smoothly a number of lines. You decide when to use that function. I provide some mappings that everyone would expect but that's about it.
What you want to do is map your scrolling keys to a function that checks if the window is high enough for your liking before calling neoscroll.scroll()
. Unfortunately, I don't have the time to provide an example but should be pretty straightforward.