mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-31 00:23:57 +00:00
Disable zooming on wheel
This commit is contained in:
parent
3764ef84ec
commit
9e1a6df93a
@ -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);
|
||||
selection.call(this.zoom);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user