Skip to content

Commit bd04fd8

Browse files
committed
Disable click-to-select in pan/zoom mode temporarily [1852]
- Reason: until clickmode attribute is not introduced, Jasmine spies in gl2d_plot_interact_test are expecting different default behavior.
1 parent c88aee0 commit bd04fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scattergl/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ function plot(gd, subplot, cdata) {
523523
scene.unselectBatch = null;
524524
var dragmode = fullLayout.dragmode;
525525
// TODO get that from layout as soon as clickmode attribute has been added
526-
var clickmode = 'select';
526+
var clickmode = 'click';
527527
var selectMode = (dragmode === 'lasso' || dragmode === 'select' || clickmode === 'select');
528528

529529
for(i = 0; i < cdata.length; i++) {

0 commit comments

Comments
 (0)