editor: prevent context menu touch-click from triggering a mouse-click on the element underneath
This commit is contained in:
parent
b90cce04e1
commit
a9d93da045
1 changed files with 1 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ class ContextMenu {
|
|||
var item = DOM.create(`<div class="item">${label}</div>`)
|
||||
menu.appendChild(item)
|
||||
item.addEventListener(this.event, (e)=>{
|
||||
e.detail.preventDefault = true
|
||||
actions[label]()
|
||||
this.close()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue