Skip to content

Commit cab6264

Browse files
committed
disable user-select at plotly paper level
1 parent 040465e commit cab6264

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plot_api/plot_api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3717,13 +3717,15 @@ function makePlotFramework(gd) {
37173717

37183718
// Plot container
37193719
fullLayout._container = gd3.selectAll('.plot-container').data([0]);
3720-
fullLayout._container.enter().insert('div', ':first-child')
3720+
fullLayout._container.enter()
3721+
.insert('div', ':first-child')
37213722
.classed('plot-container', true)
37223723
.classed('plotly', true);
37233724

37243725
// Make the svg container
37253726
fullLayout._paperdiv = fullLayout._container.selectAll('.svg-container').data([0]);
37263727
fullLayout._paperdiv.enter().append('div')
3728+
.classed('user-select-none', true)
37273729
.classed('svg-container', true)
37283730
.style('position', 'relative');
37293731

0 commit comments

Comments
 (0)