regression: Fix new window animation

Removing `space.moving` broke a silent assumption used by `insertWindow`.

The problem is caused by not detecting layouts that doesn't scroll the space.
Detect it by guarding against any active tweens.
This commit is contained in:
Tor Hedin Brønner
2018-12-06 21:27:21 +01:00
parent 18eb343af3
commit a8b23aa451
+2 -1
View File
@@ -572,7 +572,8 @@ class Space extends Array {
} }
moveDone() { moveDone() {
if (this.cloneContainer.x !== this.targetX || if (Tweener.getTweenCount(this.cloneContainer) > 0 ||
this.cloneContainer.x !== this.targetX ||
this.actor.y !== 0 || this.actor.y !== 0 ||
Navigator.navigating || inPreview || noAnimate || Navigator.navigating || inPreview || noAnimate ||
Main.overview.visible) { Main.overview.visible) {