Commit 2d3ca31f authored by Jörg Richter's avatar Jörg Richter

Fix (Windows): suppress browser context menu on canvas, 2nd try

See dmx-platform/dmx-platform#264
parent 87c8b835
Pipeline #7466 passed with stage
in 2 seconds
console.log('dm5-cytoscape-renderer 2019/07/19')
export default {
storeModule: require('./src/topicmap-model').default,
comp: require('./src/components/dm5-cytoscape-renderer').default
......
......@@ -66,8 +66,11 @@ export default {
})
},
contextmenu () {
contextmenu (e) {
console.log('contextmenu')
e.preventDefault() // TODO: needed?
e.stopImmediatePropagation() // TODO: needed?
return false // TODO: needed?
}
},
......
......@@ -527,6 +527,10 @@ function eventHandlers () {
render: e.renderedPosition
})
}
}).on('contextmenu', e => {
console.log('cy contextmenu', e)
e.preventDefault() // TODO: needed?
return false // TODO: needed?
}).on('dragfreeon', e => {
topicDrag(e.target)
}).on('viewport', () => {
......
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