appDisplay: Skip animation when hidden
The time computation isn't just unnecessary in that case, it's likely wrong as well: If we don't have a valid allocation, we may well end up with a negative value, NaN or Infinity. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654
This commit is contained in:
parent
9aa06e3001
commit
0f178c3b3d
@ -463,6 +463,12 @@ var AllView = class AllView extends BaseAppView {
|
|||||||
if (this._displayingPopup && this._currentPopup)
|
if (this._displayingPopup && this._currentPopup)
|
||||||
this._currentPopup.popdown();
|
this._currentPopup.popdown();
|
||||||
|
|
||||||
|
if (!this.actor.mapped) {
|
||||||
|
this._adjustment.value = this._grid.getPageY(pageNumber);
|
||||||
|
this._pageIndicators.setCurrentPage(pageNumber);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let velocity;
|
let velocity;
|
||||||
if (!this._panning)
|
if (!this._panning)
|
||||||
velocity = 0;
|
velocity = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user