Skip to content

Commit ae0cf65

Browse files
committed
if x axis is unzoomed, don’t force it equal (#956)
1 parent 6ca0d71 commit ae0cf65

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Fix broken zoom also in the drawing test (same as #611/#953)
2020
- Resetting `panEdgeFraction` now works
2121
- Fix tests/unboxed-spark regression caused by PR #936
22+
- Synchroniser doesn’t force x axis range if unzoomed (#956)
2223

2324
## Other user-visible changes
2425
- Fix issue #611 in the drawing demo gallery (#953)

src/extras/synchronizer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ function attachZoomHandlers(gs, syncOpts, prevCallbacks) {
195195
var opts = {
196196
dateWindow: me.xAxisRange()
197197
};
198+
if (!me.isZoomed('x'))
199+
opts.dateWindow = null;
198200
if (syncOpts.range)
199201
opts.valueRange = me.yAxisRange();
200202

0 commit comments

Comments
 (0)