add ability to selecively disable ops
This commit is contained in:
parent
77ff79feb5
commit
e19c27170a
4 changed files with 19 additions and 2 deletions
|
|
@ -2239,7 +2239,7 @@
|
|||
// block standard browser context menu
|
||||
DOC.oncontextmenu = (event) => {
|
||||
let et = event.target;
|
||||
if (et.tagName === 'CANVAS' || et.id === 'context-menu') {
|
||||
if (et.tagName === 'CANVAS' || et.id === 'context-menu' || et.classList.contains('draggable')) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue