Fix last commit, tweens are still active on onComplete...

Apparently the tween isn't tecnically done when onComplete is run, so
`tweenCount`/`isTweening` isn't correct.

Checking `isTweening` the clones does work, probably since they're queued
before cloneContainer.
This commit is contained in:
Tor Hedin Brønner 2018-12-06 21:41:05 +01:00
parent a8b23aa451
commit 9389d90cc4

View File

@ -572,8 +572,7 @@ class Space extends Array {
}
moveDone() {
if (Tweener.getTweenCount(this.cloneContainer) > 0 ||
this.cloneContainer.x !== this.targetX ||
if (this.cloneContainer.x !== this.targetX ||
this.actor.y !== 0 ||
Navigator.navigating || inPreview || noAnimate ||
Main.overview.visible) {
@ -600,6 +599,10 @@ class Space extends Array {
});
this.visible.forEach(w => {
// Guard against races between move_to and layout
if (Tweener.isTweening(w.clone))
return;
w.clone.hide();
let actor = w.get_compositor_private();
clipWindowActor(actor, this.monitor);