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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user