diff --git a/src/container/ZoomPane/index.tsx b/src/container/ZoomPane/index.tsx index 1c9da121..1c790fb5 100644 --- a/src/container/ZoomPane/index.tsx +++ b/src/container/ZoomPane/index.tsx @@ -78,8 +78,8 @@ const ZoomPane = ({ d3Zoom.translateBy( d3Selection, - (event.wheelDeltaX / currentZoom) * panOnScrollSpeed, - (event.wheelDeltaY / currentZoom) * panOnScrollSpeed + (event.deltaX / currentZoom) * panOnScrollSpeed, + (event.deltaY / currentZoom) * panOnScrollSpeed ); }) .on('wheel.zoom', null);