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
Mouse scroll problem #392
Comments
Same issue here, it seems to move blocks of text around and occasionally splits the window to display the manual for TR (man://TR) |
Hm... I haven't seen this... Does this always happen or only when ... ? |
If I scroll up and down quickly It happens pretty consistently. |
I'll try to fix this scroll issue. (And yes, the scroll performance is an issue, cf. GH-371) |
Could you try https://github.com/qvacua/vimr/releases/tag/snapshot%2F165 and give me feedback? |
That fixes the issue of moving text/opening a split but now it freezes for a second or two. I'ts fine if I scroll around slowly but when i start scrolling around quickly it lags. The lagging seems to be worse when i scroll further in the document. If i scroll quickly to beginning and end of the document repeatedly it lags for a few seconds every time it reaches the top / bottom. |
It's especially noticeable if you fast-swipe on a trackpad to scroll down multiple times, then immediately fast-swipe in the opposite direction: Likely, you have to wait several seconds until you hit the bottom of the file (and then some) before you scroll back up. Compare this to how, eg., MacVim handles this, where every scroll event immediately cancels all previous events before their own scroll action (Probably every input should do that.) |
I think the main problem is that VimR's rendering and scrolling is not at all optimized. Currently it's kind of "make-it-work-and-don't-care-about-the-performance"... I hope with time it'll improve. For example, on my MBA from 2012 or on an MBP with i7 from 2014 the scroll performance it not an issue, even in fullscreen. However, on my current mac, the base model of 13" MBP 2016 with TouchBar, it is an issue when the window is big enough... I'll close this issue and work on GH-371 (optimize scroll perf.), please follow that issue from now on, thanks. |
It's not the performance of the scrolling per se (at least for me, although it is slow when having to apply complex syntax highlighting while scrolling), it's that scroll commands are "queued" when each command should rather cancel the previous ones. So I think this is a separate issue. |
Yes, maybe there's room for improvement in that respect. We're already throttling the scroll (trackpad) events from |
Maybe related: equalsraf/neovim-qt#273 |
On mouse scrolling vimr fucking up the file by sending some random keystrokes.
Macvim or console vim works proper.
The text was updated successfully, but these errors were encountered: