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.
This commit is contained in:
parent
0e6625f719
commit
d2709c681f
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user