Skip to content

Commit

Permalink
if x axis is unzoomed, don’t force it equal (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirabilos committed Feb 16, 2023
1 parent 6ca0d71 commit ae0cf65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Fix broken zoom also in the drawing test (same as #611/#953)
- Resetting `panEdgeFraction` now works
- Fix tests/unboxed-spark regression caused by PR #936
- Synchroniser doesn’t force x axis range if unzoomed (#956)

## Other user-visible changes
- Fix issue #611 in the drawing demo gallery (#953)
Expand Down
2 changes: 2 additions & 0 deletions src/extras/synchronizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ function attachZoomHandlers(gs, syncOpts, prevCallbacks) {
var opts = {
dateWindow: me.xAxisRange()
};
if (!me.isZoomed('x'))
opts.dateWindow = null;
if (syncOpts.range)
opts.valueRange = me.yAxisRange();

Expand Down

0 comments on commit ae0cf65

Please sign in to comment.