[gnome-shell/wip/exalm/gesture-fix: 31/32] swipeTracker: Reset scroll gesture state on disabling



commit 127e24438bf093d69e042059ade93b10fe3a51ba
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu Feb 6 00:51:45 2020 +0500

    swipeTracker: Reset scroll gesture state on disabling
    
    Ensure that scrolling works correctly next time it's enabled.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/issues/2177

 js/ui/swipeTracker.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js
index 65c3d0d649..77536e4766 100644
--- a/js/ui/swipeTracker.js
+++ b/js/ui/swipeTracker.js
@@ -270,6 +270,8 @@ const ScrollGesture = GObject.registerClass({
             return;
 
         this._enabled = enabled;
+        this._began = false;
+
         this.notify('enabled');
     }
 


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