[gnome-shell] swipeTracker: Ignore Meta key while workspace scroll gesture is in progress



commit 1260e3509390036cad9a87b864578e60561a5bf5
Author: kyte <kyteinsky gmail com>
Date:   Tue Feb 1 03:29:49 2022 +0530

    swipeTracker: Ignore Meta key while workspace scroll gesture is in progress
    
    Workspace transition stopped midway when the Meta key
    was released while the two-finger scroll gesture was
    in progress. This commit ignores the Meta key once
    the gesture has been confirmed and is in motion.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2135>

 js/ui/swipeTracker.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js
index b49216e5f6..c93d8bfdc2 100644
--- a/js/ui/swipeTracker.js
+++ b/js/ui/swipeTracker.js
@@ -364,7 +364,7 @@ const ScrollGesture = GObject.registerClass({
         if ((this._allowedModes & Main.actionMode) === 0)
             return false;
 
-        if (this.scrollModifiers !== 0 &&
+        if (!this._began && this.scrollModifiers !== 0 &&
             (event.get_state() & this.scrollModifiers) === 0)
             return false;
 


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