From fc16bc1168dfa81d260b9e0e83b49a72808ab137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Mo=CC=88ller?= Date: Mon, 16 Nov 2020 13:12:29 +0100 Subject: [PATCH] fix(panOnScroll): invert scroll direction (#683) --- src/container/ZoomPane/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/container/ZoomPane/index.tsx b/src/container/ZoomPane/index.tsx index e36a95e6..a1b96a8f 100644 --- a/src/container/ZoomPane/index.tsx +++ b/src/container/ZoomPane/index.tsx @@ -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);