Fix editor scrolling issues by enabling overflow on editor body and preventing modal scroll conflicts

This commit is contained in:
2026-03-21 12:55:35 -04:00
parent eac1980e62
commit 0ba58115a2
2 changed files with 49 additions and 4 deletions
+11
View File
@@ -982,6 +982,17 @@
closeEditor();
}
});
// Fix mouse wheel scrolling in editor
modal.addEventListener("wheel", (e) => {
const editorBody = document.getElementById("editor-body");
if (editorBody && editorBody.contains(e.target)) {
// Let the editor handle the scroll
return;
}
// Prevent modal from scrolling if not in editor area
e.preventDefault();
}, { passive: false });
}
// ---------------------------------------------------------------------------