[gnome-shell/wip/looking-glass-fix] 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/looking-glass-fix] lookingGlass: Ensure that we don't divide by zero
- Date: Sun, 4 Aug 2013 09:48:19 +0000 (UTC)
commit 0e6625f7193932e925d6e3f08dafcb8040b96c44
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.
https://bugzilla.gnome.org/show_bug.cgi?id=704448
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]