[gnome-shell] tweener: Also consider delay when disabling animations
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] tweener: Also consider delay when disabling animations
- Date: Tue, 19 Aug 2014 17:48:19 +0000 (UTC)
commit 6edcd82103a25e102f29e434e9ce478ac30d4c70
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jun 25 19:42:35 2014 +0200
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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/tweener.js b/js/ui/tweener.js
index 5765fe7..d732145 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]