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:
parent
403ed07ad9
commit
edc9ad13bf
3 changed files with 4 additions and 3 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue