mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
[Editor] Don't show the context menu when resizing
This commit is contained in:
parent
5ad42c13ad
commit
c57a0f38e9
1 changed files with 2 additions and 0 deletions
|
@ -749,6 +749,7 @@ class AnnotationEditor {
|
|||
boundResizerPointermove,
|
||||
pointerMoveOptions
|
||||
);
|
||||
window.addEventListener("contextmenu", noContextMenu);
|
||||
const savedX = this.x;
|
||||
const savedY = this.y;
|
||||
const savedWidth = this.width;
|
||||
|
@ -769,6 +770,7 @@ class AnnotationEditor {
|
|||
boundResizerPointermove,
|
||||
pointerMoveOptions
|
||||
);
|
||||
window.removeEventListener("contextmenu", noContextMenu);
|
||||
this.parent.div.style.cursor = savedParentCursor;
|
||||
this.div.style.cursor = savedCursor;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue