update(zoom): when zoom is deactivated we disbale scrolling

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-23 17:35:40 +01:00
parent d57b94d0bf
commit ca46d6a771
+1 -1
View File
@@ -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)