libinput/src
José Expósito b6a944bb80 wheel: ignore initial small scroll deltas
Mice with high-resolution support can generate deltas when the finger is
put on the wheel or when the user tries to click the wheel.

To avoid sending involuntary scroll events, add an extra state the the
wheel state machine to accumulate scroll deltas.
While the accumulated scroll is lower than a certain threshold, ignore
them until the threshold is reached.

Since no finish event is sent by the mouse, reset the state machine
after a period of scroll inactivity.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
2021-11-08 18:00:46 +01:00
..
builddir.h Fix a few coverity complaints 2020-11-10 14:27:22 +10:00
evdev-debounce.c evdev: restart debouncing timers after every event 2021-05-19 12:24:59 +02:00
evdev-fallback.c wheel: ignore initial small scroll deltas 2021-11-08 18:00:46 +01:00
evdev-fallback.h wheel: ignore initial small scroll deltas 2021-11-08 18:00:46 +01:00
evdev-middle-button.c doc: update draw.io URL 2021-06-09 22:12:35 +00:00
evdev-mt-touchpad-buttons.c touchpad: remove two unused functions 2021-07-22 23:14:43 +00:00
evdev-mt-touchpad-edge-scroll.c High-resolution scroll wheel support 2021-08-31 08:45:01 +02:00
evdev-mt-touchpad-gestures.c gestures: cancel hold gestures on thumb detection 2021-11-04 18:40:54 +01:00
evdev-mt-touchpad-tap.c doc: update draw.io URL 2021-06-09 22:12:35 +00:00
evdev-mt-touchpad-thumb.c Allow reviving a thumb that moves sufficiently 2021-05-19 05:12:58 +00:00
evdev-mt-touchpad.c touchpad: mark USB touchpads as internal by default 2021-09-21 09:28:18 +10:00
evdev-mt-touchpad.h gestures: improve one finger hold detection 2021-06-10 01:07:19 +00:00
evdev-tablet-pad-leds.c tablet-pad-leds: Open led file with O_NONBLOCK | O_CLOEXEC 2021-04-06 16:33:42 +02:00
evdev-tablet-pad.c meson.build: update libwacom dependency to 0.27 or newer 2020-09-09 12:36:09 +10:00
evdev-tablet-pad.h [clang-tidy] fix inconsistent declarations 2020-08-27 01:00:31 -07:00
evdev-tablet.c quirks: Add tablet smoothing attribute. 2021-07-28 23:53:36 +00:00
evdev-tablet.h tablet: disable smoothing for AES devices 2020-11-25 03:54:47 +00:00
evdev-totem.c totem: separate X/Y resolution from touch size in discriminator 2021-02-09 13:52:20 +01:00
evdev-wheel.c wheel: ignore initial small scroll deltas 2021-11-08 18:00:46 +01:00
evdev.c evdev: avoid usage of bogus BTN_FORWARD name 2021-10-11 17:43:26 -03:00
evdev.h High-resolution scroll wheel support 2021-08-31 08:45:01 +02:00
filter-flat.c filter-flat.c: remove unused includes 2019-09-12 09:36:40 +10:00
filter-low-dpi.c filter-low-dpi.c: remove unused includes 2019-09-12 09:36:40 +10:00
filter-mouse.c filter: correct comments about the threshold's unit 2021-03-16 06:03:56 +00:00
filter-private.h Add quirk to control velocity averaging, disable it by default 2018-08-22 12:12:55 +02:00
filter-tablet.c filter: drop an unused function and an unused struct 2019-02-06 14:22:02 +10:00
filter-touchpad-flat.c Allow the flat acceleration profile for touchpads 2020-05-27 06:21:00 +00:00
filter-touchpad-x230.c treewide: fix typos 2020-12-16 22:08:23 +01:00
filter-touchpad.c filter: correct comments about the threshold's unit 2021-03-16 06:03:56 +00:00
filter-trackpoint.c filter-trackpoint.c: remove unused include 2019-09-12 09:36:40 +10:00
filter.c treewide: fix typos 2020-12-16 22:08:23 +01:00
filter.h treewide: fix typos 2020-12-16 22:08:23 +01:00
libinput-git-version.h.in tools: add the git version in the libinput-record output 2018-03-06 14:22:30 +10:00
libinput-private-config.c gesutures: allow to configure hold gestures 2021-06-09 01:18:58 +00:00
libinput-private-config.h gesutures: allow to configure hold gestures 2021-06-09 01:18:58 +00:00
libinput-private.h High-resolution scroll wheel support 2021-08-31 08:45:01 +02:00
libinput-restore-selinux-context.sh meson: Fix absolute libdir case in install script 2018-02-16 16:57:30 +10:00
libinput-uninstalled.pc.in buildsystem: add missing uninstalled pkg-config infra 2016-08-30 17:18:39 +10:00
libinput-util.h util: make the trace macro actually useful 2020-04-04 21:10:40 +10:00
libinput-version.h.in COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
libinput-versionsort.h Define the versionsort overrides as inlines 2021-07-28 12:50:11 +10:00
libinput.c libinput: add hold to get base event 2021-09-24 19:06:53 +02:00
libinput.h doc: guarantee end sequence for continuous scroll 2021-09-19 21:32:59 +02:00
libinput.pc.in Add -lrt to the libs 2014-07-03 09:59:43 +10:00
libinput.sym High-resolution scroll wheel support 2021-08-31 08:45:01 +02:00
path-seat.c using secure functions safe_strdup 2021-06-15 11:27:29 +08:00
quirks.c util: add a function to parse bool properties 2021-09-12 21:16:32 +00:00
quirks.h quirks: Lenovo Trackpoint Keyboard II 2021-08-24 18:01:59 +02:00
timer.c use more safety list_for_each_safe when remove element in traversing list 2021-05-24 04:42:49 +00:00
timer.h timer: flush the timer funcs if our events come in late 2017-09-21 12:27:46 +10:00
udev-seat.c replace strncmp with strneq for safety-check 2021-03-08 20:59:20 +00:00
udev-seat.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
util-bits.h Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-input-event.h Adjust for 64bit time_t for 32bit architectures 2019-11-26 15:11:44 +10:00
util-list.c Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-list.h util-list: restore list_for_each_safe() to be a single statement 2021-07-22 12:53:08 +10:00
util-macros.h Replace fallthrough comments with __attribute__((fallthrough)) 2021-07-22 23:14:43 +00:00
util-matrix.h Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-prop-parsers.c util: add a function to parse bool properties 2021-09-12 21:16:32 +00:00
util-prop-parsers.h util: add a function to parse bool properties 2021-09-12 21:16:32 +00:00
util-ratelimit.c [clang-tidy] do not use else after return 2020-08-27 01:17:24 -07:00
util-ratelimit.h [clang-tidy] fix inconsistent declarations 2020-08-27 01:00:31 -07:00
util-strings.c using secure functions safe_strdup 2021-06-15 11:27:29 +08:00
util-strings.h tools/record: deduplicate the device opening logic 2021-03-30 08:26:30 +10:00
util-time.h touchpad: reduce the jumping cursor warnings to 5 per day 2021-09-17 09:03:17 +10:00