joeytwiddle / sexy_scroller.vim

smooth animation of the cursor and the page whenever they move, with easing
89 stars 7 forks source link

Lags behind Platform driven scrolling. #12

Closed jordwalke closed 8 years ago

jordwalke commented 8 years ago

For example, in MacVim, the native mouse/trackpad driven scrolling of the operating system fights with this plugin. It would just be better to disable this plugin whenever the cursor moves off the screen, or even disable it entirely except when invoked via a keyboard mapping. In general, I would suggest accepting this pull request which would allow people to completely disable this plugin, except when explicitly invoking the scroll function. (Note it would also address the incsearch issue). The easing function is nice, but I'd prefer to use the animation only in cases when it can be done in a very high quality manner (not fighting with the OS driven scrolling, and not when incsearch is used). If that means I could only use this via an explicit keyboard mapping for animated scrolling, then it would be worth it IMHO.

joeytwiddle commented 8 years ago

I had forgotten about that PR. I didn't really understand it!

Since you find it useful, I have now merged it.

Mouse wheel scrolling is already discussed in issue #8, so I am closing this issue. Unless you mean something else by "OS driven scrolling"...?

jordwalke commented 8 years ago

Yes, I was referring to mouse/trackpad driven scrolling which was not fixed at the time I posted this.