fix(panOnScroll): use deltaX instead of wheelDeltaX event prop
This commit is contained in:
@@ -78,8 +78,8 @@ const ZoomPane = ({
|
|||||||
|
|
||||||
d3Zoom.translateBy(
|
d3Zoom.translateBy(
|
||||||
d3Selection,
|
d3Selection,
|
||||||
(event.wheelDeltaX / currentZoom) * panOnScrollSpeed,
|
(event.deltaX / currentZoom) * panOnScrollSpeed,
|
||||||
(event.wheelDeltaY / currentZoom) * panOnScrollSpeed
|
(event.deltaY / currentZoom) * panOnScrollSpeed
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.on('wheel.zoom', null);
|
.on('wheel.zoom', null);
|
||||||
|
|||||||
Reference in New Issue
Block a user