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
This commit is contained in:
Jonas Dreßler 2019-09-09 21:28:46 +02:00 committed by Florian Müllner
parent 1acee3d702
commit 13f97532bf

View File

@ -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();
}