From 6edcd82103a25e102f29e434e9ce478ac30d4c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 25 Jun 2014 19:42:35 +0200 Subject: [PATCH] tweener: Also consider delay when disabling animations 'time' is not the only timing parameter for tweens, in order to really disable animations, we need to override 'delay' as well. --- js/ui/tweener.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/tweener.js b/js/ui/tweener.js index 5765fe742..d73214518 100644 --- a/js/ui/tweener.js +++ b/js/ui/tweener.js @@ -53,8 +53,10 @@ function _wrapTweening(target, tweeningParameters) { } } - if (!Gtk.Settings.get_default().gtk_enable_animations) + if (!Gtk.Settings.get_default().gtk_enable_animations) { tweeningParameters['time'] = 0.000001; + tweeningParameters['delay'] = 0.000001; + } _addHandler(target, tweeningParameters, 'onComplete', _tweenCompleted); }