-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using mousewheel over the the scrollbar region causes bar to jump #1
Comments
Thanks for all the feedback, it is very helpful Vim allows the scrollwheel to scroll inactive windows without activating them. The scrollbar floating window is an always-inactive floating window, and so it gets scrolled by the wheel. The plugin currently attempts to prevent this by patching The main problem is that I don't know of a straightforward way to detect the particular window where the mouse is when a scrollevent occurs, or to detect the window that the scrollwheel event occurs in. Remaping I'm a bit busy right now but I will look into it when I have more time. A couple possible paths forward
Suggestions welcome |
No problem! Unfortunately I don't know enough about Neovim's internal plugin API to really offer help here.. It's not the most urgent issue though, so I can live without mousewheel support for now and we can just keep the issue open to keep track of it. If I ever get around to learning how to write plugins, perhaps I can come back to this and take a stab then. |
Greetings!
First off, thank you for creating this great plugin, and for taking the time to document and share it! Already it is much better than any of the previous solutions I've attempted to use in the past.
I'm testing it out now with my current config, and have come across a few small problems that I will report as issues.
One issue I noticed is that the mousewheel works as expected, and the scrollbar updates properly, when the cursor is over the main body of neovim, but not when the mouse is held over the narrow scrollbar region. Attempting to use the mousewheel above the scrollbar causes the bar itself to jump around dramatically, while the document itself is unchanged.
I realize that there are some issues with Neovim's mouse support that may be related to this, but I figured it would still be good to keep track of.
One final thought -- you might consider sharing the plugin on r/neovim, if you haven't already. I'm sure others would find it useful and you might get some good feedback there as well.
Cheers,
Keith
System info:
Neovim version:
The text was updated successfully, but these errors were encountered: