From 121f4345bc19e9bdee308658a1bd4eb4f7247b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Foellmi?= Date: Wed, 19 Jul 2023 04:01:47 +0200 Subject: [PATCH] Update src/js/gui/ContextMenu.js Fixed the missing canvas parameter of the refactored `relMouseCoords` function. Co-authored-by: Matthieu Baumann --- src/js/gui/ContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/gui/ContextMenu.js b/src/js/gui/ContextMenu.js index 1271d36b..b09cf6d7 100644 --- a/src/js/gui/ContextMenu.js +++ b/src/js/gui/ContextMenu.js @@ -111,7 +111,7 @@ export class ContextMenu { this.contextMenuUl.className = 'aladin-context-menu'; this.contextMenuUl.innerHTML = ''; - const xymouse = Utils.relMouseCoords(e); + const xymouse = Utils.relMouseCoords(view.imageCanvas, e); this.menuOptions.forEach(opt => this._attachOption(this.contextMenuUl, opt, xymouse)); document.body.appendChild(this.contextMenuUl);