Reduce tap-n-drag timeout (#1225998)
This commit is contained in:
parent
8a91c2aa84
commit
7427601864
32
0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch
Normal file
32
0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From b8518f8f7c1611c58badb9d73e66d9c722849b55 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Tue, 2 Jun 2015 13:04:44 +1000
|
||||||
|
Subject: [PATCH libinput] touchpad: reduce tap-n-drag timeout to 300ms
|
||||||
|
|
||||||
|
The current 500ms is too long, reduce it to 300ms instead. This is still long
|
||||||
|
enough to get multiple movements but not that long that it feels like the
|
||||||
|
button is stuck.
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=90613
|
||||||
|
|
||||||
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
---
|
||||||
|
src/evdev-mt-touchpad-tap.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c
|
||||||
|
index 55b7916..b51f083 100644
|
||||||
|
--- a/src/evdev-mt-touchpad-tap.c
|
||||||
|
+++ b/src/evdev-mt-touchpad-tap.c
|
||||||
|
@@ -37,7 +37,7 @@
|
||||||
|
#define CASE_RETURN_STRING(a) case a: return #a
|
||||||
|
|
||||||
|
#define DEFAULT_TAP_TIMEOUT_PERIOD 180
|
||||||
|
-#define DEFAULT_DRAG_TIMEOUT_PERIOD 500
|
||||||
|
+#define DEFAULT_DRAG_TIMEOUT_PERIOD 300
|
||||||
|
#define DEFAULT_TAP_MOVE_THRESHOLD TP_MM_TO_DPI_NORMALIZED(3)
|
||||||
|
|
||||||
|
enum tap_event {
|
||||||
|
--
|
||||||
|
2.4.1
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: libinput
|
Name: libinput
|
||||||
Version: 0.16.0
|
Version: 0.16.0
|
||||||
Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
|
Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
|
||||||
Summary: Input device library
|
Summary: Input device library
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -22,6 +22,9 @@ Patch01: 0001-filter-pass-last_velocity-as-argument.patch
|
|||||||
Patch02: 0002-filter-up-the-motion-timeout-to-1-second.patch
|
Patch02: 0002-filter-up-the-motion-timeout-to-1-second.patch
|
||||||
Patch03: 0003-filter-enforce-minimum-velocity.patch
|
Patch03: 0003-filter-enforce-minimum-velocity.patch
|
||||||
|
|
||||||
|
#Bug 1225998 - Tap-and-drag touchpad behavior not configurable
|
||||||
|
Patch04: 0001-touchpad-reduce-tap-n-drag-timeout-to-300ms.patch
|
||||||
|
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
BuildRequires: autoconf automake libtool pkgconfig
|
BuildRequires: autoconf automake libtool pkgconfig
|
||||||
BuildRequires: libevdev-devel
|
BuildRequires: libevdev-devel
|
||||||
@ -97,6 +100,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 02 2015 Peter Hutterer <peter.hutterer@redhat.com> 0.16.0-3
|
||||||
|
- Reduce tap-n-drag timeout (#1225998)
|
||||||
|
|
||||||
* Tue Jun 02 2015 Peter Hutterer <peter.hutterer@redhat.com> 0.16.0-2
|
* Tue Jun 02 2015 Peter Hutterer <peter.hutterer@redhat.com> 0.16.0-2
|
||||||
- Handle slow motions better (#1227039)
|
- Handle slow motions better (#1227039)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user