update(zoom): when zoom is deactivated we disbale scrolling
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -139,7 +139,7 @@ invoke(async () => {
|
|||||||
} else if (typeof d3ZoomHandler !== 'undefined') {
|
} else if (typeof d3ZoomHandler !== 'undefined') {
|
||||||
d3s
|
d3s
|
||||||
?.on('wheel', (event: WheelEvent) => {
|
?.on('wheel', (event: WheelEvent) => {
|
||||||
if (!props.preventScrolling || noWheel(event)) return
|
if ((!props.zoomOnScroll && props.preventScrolling) || !props.preventScrolling || noWheel(event)) return
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
})
|
})
|
||||||
.on('wheel.zoom', d3ZoomHandler)
|
.on('wheel.zoom', d3ZoomHandler)
|
||||||
|
|||||||
Reference in New Issue
Block a user