[gnome-shell/wip/exalm/gestures: 7/17] workspacesView: Don't allow mouse scrolling while animating



commit 2dfb1b75ed14e441d892c3f31a3761e2b668f4de
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Oct 16 10:39:48 2019 +0500

    workspacesView: Don't allow mouse scrolling while animating
    
    Prevent uncontrollably fast scrolling.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1338
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/605

 js/ui/workspacesView.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index ae74ddd862..e94a6e91a5 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -768,6 +768,9 @@ class WorkspacesDisplay extends St.Widget {
             this._getMonitorIndexForEvent(event) != this._primaryIndex)
             return Clutter.EVENT_PROPAGATE;
 
+        if (this._animatingScroll)
+            return Clutter.EVENT_PROPAGATE;
+
         let workspaceManager = global.workspace_manager;
         let activeWs = workspaceManager.get_active_workspace();
         let ws;


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