fix(panOnScroll): invert scroll direction (#683)
This commit is contained in:
@@ -108,8 +108,8 @@ const ZoomPane = ({
|
||||
|
||||
d3Zoom.translateBy(
|
||||
d3Selection,
|
||||
(deltaX / currentZoom) * panOnScrollSpeed,
|
||||
(deltaY / currentZoom) * panOnScrollSpeed
|
||||
-(deltaX / currentZoom) * panOnScrollSpeed,
|
||||
-(deltaY / currentZoom) * panOnScrollSpeed
|
||||
);
|
||||
})
|
||||
.on('wheel.zoom', null);
|
||||
|
||||
Reference in New Issue
Block a user