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.
This commit is contained in:
Florian Müllner 2014-06-25 19:42:35 +02:00
parent d5aa276c41
commit 6edcd82103

View File

@ -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);
}