Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Browser default contextmenu also appears on contextclicked event

$
0
0

@QooQooDaas wrote:

I’m trying to prevent the default contextmenu of the browser when right clicking on the diagram. Otherwise, the context template I implemented would show up along with the browser default contextmenu when I right-click the mouse.

Interestingly, the browser default contextmenu does only show up along when I right click in certain environments. I’m going to list-up the certain environments:

Windows

  • Whale(2.6.88.13) // latest
  • Chrome(78.0.x) // latest
  • Firefox(70.0.1) // latest

Mac

  • Whale(2.6.88.11) // latest

In other words, when I run my app in chrome, Mac os, the browser default contextmenu doesn’t show up along. I don’t know what’s going on here :/

I’ve even tried like:

this.diagram.addDiagramListener('BackgroundContextClicked', (event: go.DiagramEvent) => {
  event.diagram.lastInput.event.preventDefault();

but it didn’t work.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles