diff --git a/draftlogs/6356_add.md b/draftlogs/6356_add.md index 929da457d81..eb4281c4780 100644 --- a/draftlogs/6356_add.md +++ b/draftlogs/6356_add.md @@ -1 +1 @@ -- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356)] \ No newline at end of file +- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356), [#6443](https://github.com/plotly/plotly.js/pull/6443)] \ No newline at end of file diff --git a/src/plots/cartesian/dragbox.js b/src/plots/cartesian/dragbox.js index 1e4b889c152..29b9067070a 100644 --- a/src/plots/cartesian/dragbox.js +++ b/src/plots/cartesian/dragbox.js @@ -729,7 +729,9 @@ function makeDragBox(gd, plotinfo, x, y, w, h, ns, ew) { function pushActiveAxIdsSynced(axList, axisType) { for(i = 0; i < axList.length; i++) { - if(!axList[i].fixedrange && axList[i][axisType]) {activeAxIds.push(axList[i][axisType]._id);} + var axListI = axList[i]; + var axListIType = axListI[axisType]; + if(!axListI.fixedrange && axListIType.tickmode === 'sync') activeAxIds.push(axListIType._id); } }