AppMenu: remove tweens before animating the actor visibility
When we show(), we need to make sure that the hiding animation doesn't reach the end, otherwise we would hide the actor but still have _visible = true. We were relying on tweener overwriting to do this, but it doesn't quite work, so better be explicit and do it ourselves. https://bugzilla.gnome.org/show_bug.cgi?id=707814
This commit is contained in:
@ -249,6 +249,7 @@ const AppMenuButton = new Lang.Class({
|
||||
this._visible = true;
|
||||
this.actor.reactive = true;
|
||||
this.actor.show();
|
||||
Tweener.removeTweens(this.actor);
|
||||
Tweener.addTween(this.actor,
|
||||
{ opacity: 255,
|
||||
time: Overview.ANIMATION_TIME,
|
||||
@ -261,6 +262,7 @@ const AppMenuButton = new Lang.Class({
|
||||
|
||||
this._visible = false;
|
||||
this.actor.reactive = false;
|
||||
Tweener.removeTweens(this.actor);
|
||||
Tweener.addTween(this.actor,
|
||||
{ opacity: 0,
|
||||
time: Overview.ANIMATION_TIME,
|
||||
|
Reference in New Issue
Block a user