summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/usbvision/usbvision-cards.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-10-29 19:25:24 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-29 19:25:24 +0100
commit044ee890286153a1aefb40cb8b6659921aecb38b (patch)
treee0ecf95d6cc0174c8c5b106fec229ccad191e79a /drivers/media/usb/usbvision/usbvision-cards.h
parentMerge tag 'tty-4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre... (diff)
downloadlinux-044ee890286153a1aefb40cb8b6659921aecb38b.tar.xz
linux-044ee890286153a1aefb40cb8b6659921aecb38b.zip
HID: input: simplify/fix high-res scroll event handling
Commit 1ff2e1a44e02 ("HID: input: Create a utility class for counting scroll events") created the helper function hid_scroll_counter_handle_scroll() to handle high-res scroll events and also expose them as regular wheel events. But the resulting algorithm was unstable, and causes scrolling to be very unreliable. When you hit the half-way mark of the highres multiplier, small highres movements will incorrectly translate into big traditional wheel movements, causing odd jitters. Simplify the code and make the output stable. NOTE! I'm pretty sure this will need further tweaking. But this at least turns a unusable mouse wheel on my Logitech MX Anywhere 2S into a usable one. Cc: Jiri Kosina <jikos@kernel.org> Cc: Harry Cutts <hcutts@chromium.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/media/usb/usbvision/usbvision-cards.h')
0 files changed, 0 insertions, 0 deletions