Herman Sontrop
Herman Sontrop

Reputation: 69

remove stroke from canvas element

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

vis.js example of blue box on right click

Upvotes: 0

Views: 1028

Answers (1)

user5591717
user5591717

Reputation:

Try removing the outline from the immediate div around the canvas element.

.vis-network {
    outline: 0;
}

Upvotes: 1

Related Questions