Skip to content

Commit 4d5746a

Browse files
committed
remove duplicate draw call for axes with tickmode: 'sync'
1 parent 2be45e2 commit 4d5746a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plots/cartesian/dragbox.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,10 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) {
732732
for(i = 0; i < axList.length; i++) {
733733
var axListI = axList[i];
734734
var axListIType = axListI[axisType];
735-
if(!axListI.fixedrange && axListIType.tickmode === 'sync') activeAxIds.push(axListIType._id);
735+
var axId = axListIType._id;
736+
if(!axListI.fixedrange && axListIType.tickmode === 'sync' && activeAxIds.indexOf(axId) === -1) {
737+
activeAxIds.push(axId);
738+
}
736739
}
737740
}
738741

0 commit comments

Comments
 (0)