[gnome-shell] overviewControls: Remove slide transitions before setting value manually



commit 13f97532bf244a8433f2dffbb84783092f401b26
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon Sep 9 21:28:46 2019 +0200

    overviewControls: Remove slide transitions before setting value manually
    
    Remove transitions of the `slide-x` property of the layout manager
    before we set the property to a fixed value, otherwise the transitions
    might still be running and change the value after we set it.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/707

 js/ui/overviewControls.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index cf24a5e566..f5c51eed7a 100644
--- a/js/ui/overviewControls.js
+++ b/js/ui/overviewControls.js
@@ -248,6 +248,7 @@ var SlidingControl = class {
         // selector; this means we can now safely set the full slide for
         // the next page, since slideIn or slideOut might have been called,
         // changing the visiblity
+        this.actor.remove_transition('@layout.slide-x');
         this.layout.slide_x = this._getSlide();
         this._updateTranslation();
     }


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