Commit 87c8b835 authored by Jörg Richter's avatar Jörg Richter

Fix (Windows): suppress browser context menu on canvas

See dmx-platform/dmx-platform#264
parent 345a0d1f
Pipeline #7459 passed with stage
in 2 seconds
<template>
<div class="dm5-cytoscape-renderer" @mousedown.capture="mousedown">
<div class="cytoscape-container" ref="cytoscape-container"></div>
<div class="cytoscape-container" ref="cytoscape-container" @contextmenu.capture.prevent="contextmenu"></div>
<div class="measurement-box" ref="measurement-box"></div>
<dm5-detail-layer :detail-renderers="detailRenderers" :quill-config="quillConfig"></dm5-detail-layer>
</div>
......@@ -56,6 +56,7 @@ export default {
},
methods: {
mousedown (e) {
this.$store.dispatch('_setModifiers', {
alt: e.altKey,
......@@ -63,6 +64,10 @@ export default {
meta: e.metaKey,
shift: e.shiftKey
})
},
contextmenu () {
console.log('contextmenu')
}
},
......
......@@ -178,7 +178,7 @@ export default {
margin-top: 12px;
}
.dm5-detail a {
.dm5-detail .dm5-object-renderer a {
pointer-events: initial;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment