From 9fab9b82b4956d353e4e1e1ef7bd3b5cabcff590 Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+Elringus@users.noreply.github.com> Date: Sat, 18 Mar 2023 19:14:16 +0300 Subject: [PATCH] make wheel listener non-passive explicitly --- packages/core/src/container/ZoomPane/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/container/ZoomPane/index.tsx b/packages/core/src/container/ZoomPane/index.tsx index 7163cd35..6062d6dc 100644 --- a/packages/core/src/container/ZoomPane/index.tsx +++ b/packages/core/src/container/ZoomPane/index.tsx @@ -140,7 +140,7 @@ const ZoomPane = ({ -(deltaX / currentZoom) * panOnScrollSpeed, -(deltaY / currentZoom) * panOnScrollSpeed ); - }); + }, { passive: false }); } else if (typeof d3ZoomHandler !== 'undefined') { d3Selection.on('wheel.zoom', function (event: any, d: any) { if (!preventScrolling || isWrappedWithClass(event, noWheelClassName)) { @@ -149,7 +149,7 @@ const ZoomPane = ({ event.preventDefault(); d3ZoomHandler.call(this, event, d); - }); + }, { passive: false }); } } }, [