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



commit 0f34bfebd45f2a147bb77d4da6529ea00f1ed8f3
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.
    
    (cherry picked from commit 1260e3509390036cad9a87b864578e60561a5bf5)
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2181>

 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 f5f4dbb800..121b091722 100644
--- a/js/ui/swipeTracker.js
+++ b/js/ui/swipeTracker.js
@@ -365,7 +365,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]