mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 08:30:07 +01:00
Revert "touchpad: reduce the initial timeout for tapping after touch"
The timeout is too short, a number of users are unable to tap now. https://bugs.freedesktop.org/show_bug.cgi?id=99447 This reverts commitd0ba1e2b38. (cherry picked from commite86fdd5883)
This commit is contained in:
parent
cc12b91a44
commit
d7f6702e1b
1 changed files with 1 additions and 9 deletions
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include "evdev-mt-touchpad.h"
|
||||
|
||||
#define DEFAULT_TAP_INITIAL_TIMEOUT_PERIOD ms2us(100)
|
||||
#define DEFAULT_TAP_TIMEOUT_PERIOD ms2us(180)
|
||||
#define DEFAULT_DRAG_TIMEOUT_PERIOD ms2us(300)
|
||||
#define DEFAULT_TAP_MOVE_THRESHOLD TP_MM_TO_DPI_NORMALIZED(1.3)
|
||||
|
|
@ -127,13 +126,6 @@ tp_tap_notify(struct tp_dispatch *tp,
|
|||
state);
|
||||
}
|
||||
|
||||
static void
|
||||
tp_tap_set_initial_timer(struct tp_dispatch *tp, uint64_t time)
|
||||
{
|
||||
libinput_timer_set(&tp->tap.timer,
|
||||
time + DEFAULT_TAP_INITIAL_TIMEOUT_PERIOD);
|
||||
}
|
||||
|
||||
static void
|
||||
tp_tap_set_timer(struct tp_dispatch *tp, uint64_t time)
|
||||
{
|
||||
|
|
@ -163,7 +155,7 @@ tp_tap_idle_handle_event(struct tp_dispatch *tp,
|
|||
case TAP_EVENT_TOUCH:
|
||||
tp->tap.state = TAP_STATE_TOUCH;
|
||||
tp->tap.first_press_time = time;
|
||||
tp_tap_set_initial_timer(tp, time);
|
||||
tp_tap_set_timer(tp, time);
|
||||
break;
|
||||
case TAP_EVENT_RELEASE:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue