goneovim icon indicating copy to clipboard operation
goneovim copied to clipboard

Pixel scrolling reverses direction when stopping

Open diocletiann opened this issue 1 year ago • 5 comments

Thanks all the work on this, it's my favorite Neovim GUI for touchpad pixel scrolling on MacOS. Would it be possible to disable the direction reversal when scrolling stops in the middle of a row and continue moving in the direction of the scroll until the partial row is fully visible? The direction reversal is very distracting and I think this alternative could look very smooth.

diocletiann avatar May 30 '23 21:05 diocletiann

@restfuladi Hi, Thanks for this issue report. I have made a trial fix for this problem.

https://github.com/akiyosi/goneovim/actions/runs/5145975259

I would appreciate your feedback on whether this is in line with your expected behavior.

akiyosi avatar Jun 02 '23 00:06 akiyosi

@restfuladi Gentle Ping

akiyosi avatar Jun 08 '23 06:06 akiyosi

Hey, thanks for jumping on this so fast. I tested them side by side and now I'm not sure which one I prefer, they are both jumpy when the caret hits the window edge. If you could scroll partial lines per pixel and not allow the caret into them it would be ideal. I also noticed these are both running in Intel emulation mode and I'm not sure how much that costs.

diocletiann avatar Jun 09 '23 03:06 diocletiann

@restfuladi Thanks for reply. Your opinion is well understood. One possible approach would be, for example, to leave the amount of pixel scrolling that is less than the height of the row after a touchpad scrolling operation. However, this would require manually adjusting back to the exact row-by-row viewport after pixel scrolling, which some people may not like.

akiyosi avatar Jun 10 '23 16:06 akiyosi

I also noticed these are both running in Intel emulation mode and I'm not sure how much that costs.

goneovim does not yet prepare binaries for the Apple M1 arm64. This will be a topic for future improvement.

akiyosi avatar Jun 10 '23 16:06 akiyosi