Skip to content

Commit

Permalink
Merge pull request #6443 from plotly/sync-tickmode-fix-noci
Browse files Browse the repository at this point in the history
Avoid extra redraw calls when updating axes with `tickmode` other than sync
  • Loading branch information
archmoj committed Jan 19, 2023
2 parents 360213e + 0828681 commit fad8fde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion draftlogs/6356_add.md
@@ -1 +1 @@
- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356)]
- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356), [#6443](https://github.com/plotly/plotly.js/pull/6443)]
4 changes: 3 additions & 1 deletion src/plots/cartesian/dragbox.js
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit fad8fde

Please sign in to comment.