[gnome-shell/wip/aggregate-menu: 69/69] lookingGlass: Ensure that we don't divide by zero
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 69/69] lookingGlass: Ensure that we don't divide by zero
- Date: Fri, 26 Jul 2013 04:37:47 +0000 (UTC)
commit 97be554e02a82b2f9a9cb71d6ceee453c5a70a23
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jul 18 13:14:48 2013 -0400
lookingGlass: Ensure that we don't divide by zero
Cap the lower limit of the looking glass tween at 0.5.
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 98e6add..3049312 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 () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]