From 0e6625f7193932e925d6e3f08dafcb8040b96c44 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 18 Jul 2013 13:14:48 -0400 Subject: [PATCH] lookingGlass: Ensure that we don't divide by zero Cap the lower limit of the looking glass tween at 0.5. https://bugzilla.gnome.org/show_bug.cgi?id=704448 --- js/ui/lookingGlass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 98e6addde..30493124f 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: 0.5 / St.get_slow_down_factor(), + Tweener.addTween(this.actor, { time: Math.max(0.5 / St.get_slow_down_factor(), 0.5), transition: 'easeOutQuad', y: this._hiddenY, onComplete: Lang.bind(this, function () {