mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-07 12:26:54 +00:00
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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user