Skip to content

Commit 21a4552

Browse files
committed
Fixes inconsistent zoom behaviour
1 parent 02412af commit 21a4552

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/activity.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,8 @@ class Activity {
15891589
this.resizeDebounce = true;
15901590
this.blockscale += 1;
15911591
await this.blocks.setBlockScale(BLOCKSCALES[this.blockscale]);
1592+
this.refreshCanvas();
1593+
this.blocks.checkBounds();
15921594
}
15931595

15941596
const that = this;
@@ -1626,6 +1628,8 @@ class Activity {
16261628
this.resizeDebounce = true;
16271629
this.blockscale -= 1;
16281630
await this.blocks.setBlockScale(BLOCKSCALES[this.blockscale]);
1631+
this.refreshCanvas();
1632+
this.blocks.checkBounds();
16291633
}
16301634

16311635
const that = this;

0 commit comments

Comments
 (0)