Browse Source

fix scrolling with disabling options

merge-requests/12/merge
vargburz 3 years ago
parent
commit
23b38f6780
  1. 2
      dist/index.js
  2. 4
      src/index.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

4
src/index.ts

@ -668,12 +668,8 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
this.state.transform.k = k; this.state.transform.k = k;
return; return;
} }
} else {
const isPanActive = this.options.zoomEvents.mouse.pan.isActive;
if(!isPanActive) {
return; return;
} }
}
const panOrientation = this.options.zoomEvents.mouse.pan.orientation; const panOrientation = this.options.zoomEvents.mouse.pan.orientation;
if(panOrientation === PanOrientation.HORIZONTAL || panOrientation === PanOrientation.BOTH) { if(panOrientation === PanOrientation.HORIZONTAL || panOrientation === PanOrientation.BOTH) {

Loading…
Cancel
Save