mirror of
https://github.com/cds-astro/aladin-lite.git
synced 2025-12-12 07:40:26 -08:00
fix: stop contextmenu event propagation only if context menu enabled
This commit is contained in:
committed by
Matthieu Baumann
parent
ae00021fab
commit
6d458ccab7
@@ -600,7 +600,9 @@ export let View = (function () {
|
||||
Utils.on(view.catalogCanvas, "contextmenu", function (e) {
|
||||
// do something here...
|
||||
e.preventDefault();
|
||||
if(view.aladin.contextMenu) {
|
||||
e.stopPropagation();
|
||||
}
|
||||
}, false);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user