1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

[Editor] Change the cursor to a pen for the Ink editor

This commit is contained in:
Calixte Denizet 2022-07-07 16:40:33 +02:00
parent 403ed07ad9
commit edc9ad13bf
3 changed files with 4 additions and 3 deletions

View file

@ -233,7 +233,6 @@ class InkEditor extends AnnotationEditor {
}
super.enableEditMode();
this.canvas.style.cursor = "pointer";
this.div.draggable = false;
this.canvas.addEventListener("mousedown", this.#boundCanvasMousedown);
this.canvas.addEventListener("mouseup", this.#boundCanvasMouseup);
@ -246,7 +245,6 @@ class InkEditor extends AnnotationEditor {
}
super.disableEditMode();
this.canvas.style.cursor = "auto";
this.div.draggable = !this.isEmpty();
this.div.classList.remove("editing");