allow to give a div other than the default one (with id=svg_editor)

This commit is contained in:
JFH
2021-08-02 00:12:20 +02:00
parent 8644836f4e
commit 5435ab9a59
6 changed files with 13 additions and 28 deletions

View File

@@ -205,7 +205,7 @@ class LayersPanel {
window.addEventListener("mouseup", (_evt) => {
this.sidedrag = -1;
this.sidedragging = false;
$id("svg_editor").removeEventListener(
this.editor.$svgEditor.removeEventListener(
"mousemove",
this.resizeSidePanel.bind(this)
);