From 3056fc471008ca6f0afe199cc16961bd1cda4bcf Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 18 Feb 2013 14:17:29 -0500 Subject: [PATCH] overviewControls: don't perform translation when target is met already Fixes a regression from ccb81919f79f9f684234deb8f6b1fcdaae3e7965 --- js/ui/overviewControls.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 39ddc78f6..df4d637af 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -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,