[libhandy/wip/haecker-felix/flap-widget] Swipe from anywhere for touchpads



commit 74742553c77cd46a62a9c10e6c6708bcd0736a17
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Nov 21 00:19:25 2020 +0500

    Swipe from anywhere for touchpads

 src/hdy-flap.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index 5c7c4036..96e27261 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -1399,8 +1399,9 @@ hdy_flap_get_swipe_area (HdySwipeable           *swipeable,
   width = gtk_widget_get_allocated_width (GTK_WIDGET (self));
   height = gtk_widget_get_allocated_height (GTK_WIDGET (self));
 
-  if (transition_get_flap_motion_factor (self) >=1 &&
-      transition_get_content_motion_factor (self) >= 1) {
+  if (!is_drag ||
+      (transition_get_flap_motion_factor (self) >=1 &&
+       transition_get_content_motion_factor (self) >= 1)) {
     rect->x = 0;
     rect->y = 0;
     rect->width = width;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]