Skip to content
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

Trackpad moves cursor instead of scrolling the window #1043

Open
shanesmith opened this issue Jan 3, 2024 · 5 comments
Open

Trackpad moves cursor instead of scrolling the window #1043

shanesmith opened this issue Jan 3, 2024 · 5 comments

Comments

@shanesmith
Copy link

Previously, scrolling with the trackpad would scroll the whole window, but since snapshot 20231110.205939 the cursor is now moved instead. The window does scroll once the cursor reaches the edge.

@edgarcosta
Copy link
Contributor

Does anyone have a workaround for this?
For example, a temporary fix could be to force the cursor to jump to the end of the window.

@mmerickel
Copy link

mmerickel commented Mar 12, 2024

A couple more details as I'm experiencing this while converting from vim+macvim to nvim+vimr:

  1. my friend who uses a mouse with scroll wheel doesn't have the issue, it does seem specific to the trackpad input
  2. with the default mouse support from a base neovim install, scrolling works correctly in a terminal shell (using iTerm2) - it's just vimr where I see this issue of the trackpad scrolling the cursor

@edgarcosta
Copy link
Contributor

I can confirm that I do not have scroll issues with neovim in iterm2

@shanesmith
Copy link
Author

I'm fairly certain this issue is caused by #1015, specifically this update. If you expand that diff upwards you'll notice that scrolling by trackpad is indeed handled differently.

Not going to pretend I understand exactly what's going on, but in that diff I see that the code went from a scroll() to a winSetCursor(), I wonder why. 🤔

@georgeharker
Copy link
Collaborator

We had to mode to a different API. I’ll take a look and see if there’s a way to do the smooth scroll without cursor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants