Skip to content

Commit

Permalink
#4097 - Cursor position misalignment after switching in fullscreen af…
Browse files Browse the repository at this point in the history
…ter changing ketcher settings

- fixed canvas resize observer
  • Loading branch information
rrodionov91 committed Feb 16, 2024
1 parent 206c95f commit 9fab3a6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ function setupEditor(editor, props, oldProps = {}) {
}
}
});

editor.render.unobserveCanvasResize();
editor.render.observeCanvasResize();
}

function removeEditorHandlers(editor, props) {
Expand Down Expand Up @@ -249,7 +252,6 @@ class StructEditor extends Component {
});

this.editorRef.current.addEventListener('wheel', this.handleWheel);
this.editor.render.observeCanvasResize();
}

componentWillUnmount() {
Expand Down

0 comments on commit 9fab3a6

Please sign in to comment.