[gnome-shell/wip/exalm/gesture-fix: 6/6] appDisplay: Disable swipe tracker during swarm animation



commit dfb8737007b459b59ba5739c0f03f46f0efd45e9
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu Feb 6 00:59:38 2020 +0500

    appDisplay: Disable swipe tracker during swarm animation
    
    Eensures it resets when an animation starts.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/issues/2177

 js/ui/appDisplay.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 1346b93fea..115285f320 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -530,8 +530,10 @@ var AllView = GObject.registerClass({
     // Overridden from BaseAppView
     animate(animationDirection, onComplete) {
         this._scrollView.reactive = false;
+        this._swipeTracker.enabled = false;
         let completionFunc = () => {
             this._scrollView.reactive = true;
+            this._swipeTracker.enabled = this.mapped;
             if (onComplete)
                 onComplete();
         };


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