Fixed canvas resizing bug

Every time the user opened the window, the events were rebinded and added multiple times. So every popup added a canvas resizing operation.
This commit is contained in:
Nicola
2022-01-05 17:41:13 +01:00
parent 8ee0214fad
commit d6062c51ad
2 changed files with 8 additions and 3 deletions

View File

@ -36,7 +36,6 @@ const ToolManager = (() => {
}
function onMouseWheel(mouseEvent) {
console.log("MOUSE WHEEL");
if (!EditorState.documentCreated || Dialogue.isOpen())
return;