aboutsummaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-10 16:43:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-10 16:43:29 +0000
commit00dbe12e4196a781bb320070569274e2f1793a4d (patch)
treef09226e19743dbe3b89dc06be8d106dc7429c9d6 /input.h
parentrender: don't dim so much when in search mode (diff)
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.
Diffstat (limited to 'input.h')
0 files changed, 0 insertions, 0 deletions