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



commit 52c45e58bf9764412dc9f10f0b7944ae91140f98
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]