Skip to content

Commit

Permalink
Supress context menu while alt-clicking node during on-canvas rel-cre…
Browse files Browse the repository at this point in the history
…ate operation
  • Loading branch information
QubitPi committed Nov 27, 2023
1 parent 5ce4c97 commit fe5f1ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ export class Visualization {
.selectAll<SVGGElement, NodeModel>('g.node')
.attr('transform', d => `translate(${d.x},${d.y})`)
.attr('data-testid', 'nodeGroups')
.on('contextmenu', function (event) {
event.preventDefault()
})

nodeRenderer.forEach(renderer => nodeGroups.call(renderer.onTick, this))

Expand Down
2 changes: 1 addition & 1 deletion src/neo4j-arc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neo4j-devtools-arc",
"version": "0.0.70",
"version": "0.0.71",
"main": "dist/neo4j-arc.js",
"author": "Neo4j Inc.",
"license": "GPL-3.0",
Expand Down

0 comments on commit fe5f1ba

Please sign in to comment.