mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 08:00:08 +01:00
plugin/wheel: reduce ACC_V120_THRESHOLD
For mice with multipliers 30/120 and 40/120 nothing would change
as both will still cross threshold only after 2nd event.
But for MX Master 3 (and maybe others) that makes scroll beginning
a bit responsive, without jumping straight to 64/120 or 72/120.
Now events being emitted at 16+16+16 or 24+24 without significant
side-effects ("twitching" when resting finger on the wheel,
sudden scroll events when pressing middle button, etc). See !1262 for
some background.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1267>
This commit is contained in:
parent
7716954365
commit
975ce6dbf5
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@
|
||||||
#include "libinput-util.h"
|
#include "libinput-util.h"
|
||||||
|
|
||||||
#define ACC_V120_TRIGGER_THRESHOLD 30 /* 1/4 of a wheel detent */
|
#define ACC_V120_TRIGGER_THRESHOLD 30 /* 1/4 of a wheel detent */
|
||||||
#define ACC_V120_THRESHOLD 59
|
#define ACC_V120_THRESHOLD 47 /* Good for both high-ish multipliers (8/120) and the rest of the mice (30/120, 40/120, etc) */
|
||||||
#define WHEEL_SCROLL_TIMEOUT ms2us(500)
|
#define WHEEL_SCROLL_TIMEOUT ms2us(500)
|
||||||
|
|
||||||
enum wheel_state {
|
enum wheel_state {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue