diff --git a/src/main.ts b/src/main.ts index 3a8733a..348c8e1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,7 +36,8 @@ export default class SlideNotePlugin extends Plugin { registerPDFCanvas() { this.registerEvent(this.app.workspace.on("slidenote:mouseup", (event) => { - this.activeCanvas(event.target.toDataURL()); + if (event.target.parentElement.nodeName == "DIV") + this.activeCanvas(event.target.toDataURL()); })); this.registerView(