overviewControls: don't perform translation when target is met already

Fixes a regression from ccb81919f7
This commit is contained in:
Cosimo Cecchi 2013-02-18 14:17:29 -05:00
parent e411a4af21
commit 3056fc4710

View File

@ -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,