overviewControls: don't perform translation when target is met already
Fixes a regression from ccb81919f7
This commit is contained in:
parent
e411a4af21
commit
3056fc4710
@ -144,6 +144,9 @@ const SlidingControl = new Lang.Class({
|
||||
translationEnd = translation;
|
||||
}
|
||||
|
||||
if (this.actor.translation_x == translationEnd)
|
||||
return;
|
||||
|
||||
this.actor.translation_x = translationStart;
|
||||
Tweener.addTween(this.actor, { translation_x: translationEnd,
|
||||
time: SIDE_CONTROLS_ANIMATION_TIME,
|
||||
|
Loading…
Reference in New Issue
Block a user