OSDN Git Service

HID: magicmouse: high-resolution scroll threshold
authorJosé Expósito <jose.exposito89@gmail.com>
Wed, 7 Jul 2021 15:58:22 +0000 (17:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 15 Jul 2021 19:16:39 +0000 (21:16 +0200)
commit9d60648c607a2bfeef5e563e49de5d2e1b7a639a
tree26dbe9dbaeb2795a6a75dedda510f19315d2c01f
parentd4b9f10a0eb64c623217eb5938d913974afbe9d2
HID: magicmouse: high-resolution scroll threshold

In order to avoid triggering involuntary high-resolution scroll events
due to tiny touch movement deltas, add a movement threshold.

The value chosen for the threshold, about 1.5 ~ 2 mm, is similar to the
threshold used on touchpads by libinput (see libinput
evdev-mt-touchpad-gestures.c) to try to keep the scroll experience
consistent.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-magicmouse.c