Skip to content

Commit

Permalink
disable canvas when link is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantom1003 committed May 8, 2023
1 parent 83c112b commit 3f5b5d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3f5b5d7

Please sign in to comment.