Skip to content

Commit 702fd48

Browse files
committed
Updating cache for bitmap
1 parent eee60c4 commit 702fd48

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

js/activity.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3645,7 +3645,16 @@ class Activity {
36453645
this.clearCache = () => {
36463646
this.blocks.blockList.forEach(block => {
36473647
if (block.container) {
3648-
block.container.uncache();
3648+
if (block.container.cacheCanvas) {
3649+
block.container.uncache();
3650+
block.container.cache();
3651+
}
3652+
}
3653+
if (block.bitmap) {
3654+
if (block.bitmap.cacheCanvas) {
3655+
block.bitmap.uncache();
3656+
block.bitmap.cache();
3657+
}
36493658
}
36503659
});
36513660
};

0 commit comments

Comments
 (0)