Skip to content

Commit 120e37e

Browse files
authored
Fix undefined pause() call in updateBounds (#6040)
1 parent cc1d7a4 commit 120e37e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ class Block {
422422

423423
if (that.bounds === null) {
424424
const delayTime = INITIAL_DELAY * Math.pow(2, loopCount);
425-
await that.pause(delayTime);
425+
await new Promise(resolve => setTimeout(resolve, delayTime));
426426
updateBounds(loopCount + 1);
427427
} else {
428428
that.container.updateCache();

0 commit comments

Comments
 (0)