mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
input: slow trackpad scrolling now eventually scroll a line
Before, we converted each axis event's scroll amount to an integer and scrolled that many lines. However, axis events are speed sensitive - very slow scrolling will result in events with a scroll amount that is < 1.0. For us, this meant we never scrolled a single line. You could slow scroll all day if you wanted, and still we would never scroll a single line. Fix this by aggregating the scroll amount from axis events until the scroll amount is > 1.0, and then scroll.
This commit is contained in:
parent
03bdb40bd9
commit
00dbe12e41
3 changed files with 19 additions and 1 deletions
|
|
@ -48,6 +48,7 @@
|
|||
* Hostname in OSC 7 URI not being validated.
|
||||
* OSC 4 with multiple `c;spec` pairs.
|
||||
* Alt+Return to emit "ESC \r".
|
||||
* Trackpad sloooow scrolling to eventually scroll a line.
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue