1
1
mirror of https://github.com/walles/moar.git synced 2024-11-12 17:22:53 +03:00
moar/m
Johan Walles 0ba1efbe46 Handle mouse wheel scroll better
Before this change, if you scrolled up a lot with the mouse wheel, thus
creating many arrow-up events, you could sometimes escape and start
scrolling into the terminal's scrollback buffer (iTerm2, macOS).

With this change in place that doesn't happen any more.

I don't understand why.

The difference between Sync() and Show() is that:
* Sync() redraws the entire screen unconditionally
* Show() tries to update only the parts of the screen that actually changed
2019-06-16 20:33:18 +02:00
..
ansiTokenizer.go Fix an off-by-one error 2019-06-16 09:23:25 +02:00
pager_test.go Add logging 2019-06-16 10:02:19 +02:00
pager.go Handle mouse wheel scroll better 2019-06-16 20:33:18 +02:00
reader_test.go Add logging 2019-06-16 10:02:19 +02:00
reader.go Add logging 2019-06-16 10:02:19 +02:00