We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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