From e60bf44c2e06d7aecaba2803bf48e53bc47a6ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 31 Aug 2014 02:18:51 +0200 Subject: [PATCH] overviewControls: Fix initial slide-in animation Controls are slided in by animating translationX from the actor's width to 0; however as _updateTranslation() will skip the animation when the property is already at its target value and 0 happens to be the initial value of translationX, the initial animation is skipped. Fix this by initializing translationX to undefined, which will always differ from a valid target value. --- js/ui/overviewControls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js index 9fe1dfd2b..4bd3d67ab 100644 --- a/js/ui/overviewControls.js +++ b/js/ui/overviewControls.js @@ -36,7 +36,7 @@ const SlideLayout = new Lang.Class({ _init: function(params) { this._slideX = 1; - this._translationX = 0; + this._translationX = undefined; this._direction = SlideDirection.LEFT; this.parent(params);