[gnome-shell/wip/exalm/gestures: 29/36] appDisplay: Don't allow mouse scrolling while animating



commit 382b6157316de4c744f7a67f34470a2562e53000
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Oct 16 12:30:14 2019 +0500

    appDisplay: 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/appDisplay.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 888a58158c..d59e95660a 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -605,6 +605,9 @@ var AllView = GObject.registerClass({
         if (this._swipeTracker.canHandleScrollEvent(event))
             return Clutter.EVENT_PROPAGATE;
 
+        if (this._animating)
+            return Clutter.EVENT_STOP;
+
         let direction = event.get_scroll_direction();
         if (direction == Clutter.ScrollDirection.UP)
             this.goToPage(this._grid.currentPage - 1);


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