Skip to content

Commit f98a70c

Browse files
committed
Update refreshCanvas to force redraw
1 parent 22ed2bc commit f98a70c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

js/activity.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3650,7 +3650,7 @@ class Activity {
36503650
this.blocks.blockList.forEach(block => {
36513651
if (block.container) {
36523652
block.container.uncache();
3653-
block.container.cache(0,0,1,1);
3653+
block.container.cache();
36543654
}
36553655
if (block.bitmap) {
36563656
block.bitmap.uncache();
@@ -3667,15 +3667,17 @@ class Activity {
36673667
return;
36683668
}
36693669

3670-
this.blockRefreshCanvas = true;
3671-
3670+
this.blockRefreshCanvas = true;
3671+
// Force stage clear and update
3672+
this.stage.clear();
3673+
this.stage.update();
3674+
this.update = true;
3675+
36723676
const that = this;
36733677
setTimeout(() => {
36743678
that.blockRefreshCanvas = false;
3679+
that.stage.update();
36753680
}, 5);
3676-
3677-
this.stage.update(event);
3678-
this.update = true;
36793681
};
36803682

36813683
/*

0 commit comments

Comments
 (0)