From c57a0f38e9557e3e938de01c08b4ebe984e05689 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 19 Apr 2024 15:22:46 +0200 Subject: [PATCH] [Editor] Don't show the context menu when resizing --- src/display/editor/editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/display/editor/editor.js b/src/display/editor/editor.js index 8b0a2f6c4..3a42786d3 100644 --- a/src/display/editor/editor.js +++ b/src/display/editor/editor.js @@ -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;