From aea1116ba9728e4d5d5320a70233a765a65d869d Mon Sep 17 00:00:00 2001 From: ilia Date: Wed, 2 Nov 2022 18:30:05 +0300 Subject: [PATCH] remove bug --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7021cd1..7584b21 100644 --- a/index.js +++ b/index.js @@ -39,6 +39,8 @@ app.addEventListener('load', function () { // setTimeout(() => { // console.log(postRuler()) // }, 3000) + currentframeNumber = 0 + setFrame(0) app.setTool('Draw') app.setDrawShape('Circle') app.getActiveLayerGroup().getActiveDrawLayer().getKonvaStage().addEventListener('mouseup', () => { @@ -387,8 +389,6 @@ function receiveMessage(event) } else if (data.type == 'loadSchema') { schema = loadSchema(data.data) - currentframeNumber = 0 - setFrame(0) } else if (data.type == 'setIndex') { setFrame(data.data)