[gnome-shell] overviewControls: Fix initial slide-in animation
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] overviewControls: Fix initial slide-in animation
- Date: Mon, 1 Sep 2014 22:20:08 +0000 (UTC)
commit e60bf44c2e06d7aecaba2803bf48e53bc47a6ce3
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Aug 31 02:18:51 2014 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/overviewControls.js b/js/ui/overviewControls.js
index 9fe1dfd..4bd3d67 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]