[gnome-shell] lookingGlass: Avoid infinite animation time
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] lookingGlass: Avoid infinite animation time
- Date: Sun, 4 Aug 2013 11:56:02 +0000 (UTC)
commit d2709c681f365c67f0e9b8c693b4c8c113a9e2bd
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sun Aug 4 13:51:06 2013 +0200
lookingGlass: Avoid infinite animation time
Math.max(x / y, 0.5) will return infinite when y is 0. Fix that by using
Math.min() which was the actual intent of the patch.
js/ui/lookingGlass.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 3049312..268d45f 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -1150,7 +1150,7 @@ const LookingGlass = new Lang.Class({
Main.popModal(this._entry);
- Tweener.addTween(this.actor, { time: Math.max(0.5 / St.get_slow_down_factor(), 0.5),
+ Tweener.addTween(this.actor, { time: Math.min(0.5 / St.get_slow_down_factor(), 0.5),
transition: 'easeOutQuad',
y: this._hiddenY,
onComplete: Lang.bind(this, function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]