Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handlePan(deltaX) {
const calculatedDx = -(deltaX / this.getDomainScale());
const nextXDomain = ZoomHelpers.pan(
this.lastDomain.x,
this.getDataDomain().x,
calculatedDx
);
this.setDomain({x: nextXDomain});
}
handlePan(deltaX) {
const calculatedDx = -(deltaX / this.getDomainScale());
const nextXDomain = ZoomHelpers.pan(
this.lastDomain.x,
this.getDataDomain().x,
calculatedDx
);
this.setDomain({ x: nextXDomain });
}