From ca46d6a77156a9b34cfe9ec4f61fa6049f58f0d2 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:35:40 +0100 Subject: [PATCH] update(zoom): when zoom is deactivated we disbale scrolling Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/container/ZoomPane/ZoomPane.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/container/ZoomPane/ZoomPane.vue b/src/container/ZoomPane/ZoomPane.vue index ad8fe47c..dc504ea6 100644 --- a/src/container/ZoomPane/ZoomPane.vue +++ b/src/container/ZoomPane/ZoomPane.vue @@ -139,7 +139,7 @@ invoke(async () => { } else if (typeof d3ZoomHandler !== 'undefined') { d3s ?.on('wheel', (event: WheelEvent) => { - if (!props.preventScrolling || noWheel(event)) return + if ((!props.zoomOnScroll && props.preventScrolling) || !props.preventScrolling || noWheel(event)) return event.preventDefault() }) .on('wheel.zoom', d3ZoomHandler)