Reputation: 69
vis.js is an open source javascript network visualization library. A nice feature is that it has many useful events you can listen to. One is a right click (i.e. oncontext) event.
However, on a right click chrome adds a blue box around the (canvas) drawing area. This doesn't happen in Firefox or IE.
What css can I add to remove this effect?
A stand alone example can be seen here: http://visjs.org/examples/network/basicUsage.html
Upvotes: 0
Views: 1028
Reputation:
Try removing the outline from the immediate div around the canvas element.
.vis-network {
outline: 0;
}
Upvotes: 1