Disable zooming on wheel

This commit is contained in:
ziajka 2019-03-07 08:54:14 +01:00
parent 3764ef84ec
commit 9e1a6df93a

View File

@ -57,6 +57,12 @@ export class MovingTool {
}); });
}; };
// disable zooming on wheel
this.zoom.filter(() => {
const e: D3ZoomEvent<SVGSVGElement, any> = event;
return e.type === 'mousedown';
});
this.zoom.on('zoom', onZoom); this.zoom.on('zoom', onZoom);
selection.call(this.zoom); selection.call(this.zoom);
} }