fix(panOnScroll): use deltaX instead of wheelDeltaX event prop

This commit is contained in:
moklick
2020-11-05 17:56:38 +01:00
parent 81fecd9362
commit 7981230a57
+2 -2
View File
@@ -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);