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
This commit is contained in:
parent
cc6a408d5d
commit
0e6625f719
@ -1150,7 +1150,7 @@ const LookingGlass = new Lang.Class({
|
|||||||
|
|
||||||
Main.popModal(this._entry);
|
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',
|
transition: 'easeOutQuad',
|
||||||
y: this._hiddenY,
|
y: this._hiddenY,
|
||||||
onComplete: Lang.bind(this, function () {
|
onComplete: Lang.bind(this, function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user