remove bug

This commit is contained in:
ilia 2022-11-02 18:30:05 +03:00
parent f9e8dd901c
commit aea1116ba9

View File

@ -39,6 +39,8 @@ app.addEventListener('load', function () {
// setTimeout(() => { // setTimeout(() => {
// console.log(postRuler()) // console.log(postRuler())
// }, 3000) // }, 3000)
currentframeNumber = 0
setFrame(0)
app.setTool('Draw') app.setTool('Draw')
app.setDrawShape('Circle') app.setDrawShape('Circle')
app.getActiveLayerGroup().getActiveDrawLayer().getKonvaStage().addEventListener('mouseup', () => { app.getActiveLayerGroup().getActiveDrawLayer().getKonvaStage().addEventListener('mouseup', () => {
@ -387,8 +389,6 @@ function receiveMessage(event)
} }
else if (data.type == 'loadSchema') { else if (data.type == 'loadSchema') {
schema = loadSchema(data.data) schema = loadSchema(data.data)
currentframeNumber = 0
setFrame(0)
} }
else if (data.type == 'setIndex') { else if (data.type == 'setIndex') {
setFrame(data.data) setFrame(data.data)