[libhandy] swipe-tracker: Increase drag threshold distance
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libhandy] swipe-tracker: Increase drag threshold distance
- Date: Thu, 29 Oct 2020 14:31:55 +0000 (UTC)
commit 009c24289047b2fd3fd14aa0716096eba2cc2d97
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Oct 26 19:14:46 2020 +0500
    swipe-tracker: Increase drag threshold distance
    
    5 was too low, it was easy to accidentally drag while trying to press a
    button.
    
    See https://source.puri.sm/Librem5/phosh/-/issues/236
 src/hdy-swipe-tracker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/hdy-swipe-tracker.c b/src/hdy-swipe-tracker.c
index 5b1fc3e9..03e518cb 100644
--- a/src/hdy-swipe-tracker.c
+++ b/src/hdy-swipe-tracker.c
@@ -20,7 +20,7 @@
 #define VELOCITY_THRESHOLD 0.4
 #define DURATION_MULTIPLIER 3
 #define ANIMATION_BASE_VELOCITY 0.002
-#define DRAG_THRESHOLD_DISTANCE 5
+#define DRAG_THRESHOLD_DISTANCE 16
 
 /**
  * SECTION:hdy-swipe-tracker
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]