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



commit 869f4d2df765fb8c4e421c78684f67630e24b4e4
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.

 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]