fix: stop contextmenu event propagation only if context menu enabled

This commit is contained in:
Alexandra Moskowitz
2025-03-17 14:29:21 -04:00
committed by Matthieu Baumann
parent ae00021fab
commit 6d458ccab7

View File

@@ -600,7 +600,9 @@ export let View = (function () {
Utils.on(view.catalogCanvas, "contextmenu", function (e) { Utils.on(view.catalogCanvas, "contextmenu", function (e) {
// do something here... // do something here...
e.preventDefault(); e.preventDefault();
e.stopPropagation(); if(view.aladin.contextMenu) {
e.stopPropagation();
}
}, false); }, false);