[gnome-shell/wip/exalm/swipeTracker] swipeTracker: Emit an update immediately after confirmation



commit 5651152e225c3bb283be8d90baf7bc9aa8533364
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jun 21 02:08:33 2020 +0500

    swipeTracker: Emit an update immediately after confirmation
    
    Avoid a broken first frame if the swipe was started in the wrong direction
    and the initial progress isn't 0.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1325

 js/ui/swipeTracker.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js
index a638d78019..2c0ef6d715 100644
--- a/js/ui/swipeTracker.js
+++ b/js/ui/swipeTracker.js
@@ -642,5 +642,7 @@ var SwipeTracker = GObject.registerClass({
 
         this._velocity = 0;
         this._state = State.SCROLLING;
+
+        this.emit('update', this._progress);
     }
 });


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