Merge pull request #17973 from calixteman/no_contextmenu_resize

[Editor] Don't show the context menu when resizing
This commit is contained in:
calixteman 2024-04-22 15:13:26 +02:00 committed by GitHub
commit 0867a1f9bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;