Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69fe83b + 1522b68 commit 87a83e9Copy full SHA for 87a83e9
src/plots/gl2d/scene2d.js
@@ -137,6 +137,11 @@ proto.makeFramework = function() {
137
canvas.style.left = '0px';
138
canvas.style['pointer-events'] = 'none';
139
140
+ // disabling user select on the canvas
141
+ // sanitizes double-clicks interactions
142
+ // ref: https://github.com/plotly/plotly.js/issues/744
143
+ canvas.className += 'user-select-none';
144
+
145
// create SVG container for hover text
146
var svgContainer = this.svgContainer = document.createElementNS(
147
'http://www.w3.org/2000/svg',
0 commit comments