File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/core/src/container/Viewport Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,13 @@ onMounted(() => {
333
333
function (this : any , event : WheelEvent , d : any ) {
334
334
// we still want to enable pinch zooming even if preventScrolling is set to false
335
335
const invalidEvent = ! preventScrolling .value && event .type === ' wheel' && ! event .ctrlKey
336
- if (invalidEvent || isWrappedWithClass (event , noWheelClassName .value )) {
336
+
337
+ const zoomScroll = zoomKeyPressed .value || zoomOnScroll .value
338
+ const pinchZoom = zoomOnPinch .value && event .ctrlKey
339
+
340
+ const scrollEventsDisabled = ! zoomScroll && ! panOnScroll .value && ! pinchZoom && event .type === ' wheel'
341
+
342
+ if (scrollEventsDisabled || invalidEvent || isWrappedWithClass (event , noWheelClassName .value )) {
337
343
return null
338
344
}
339
345
You can’t perform that action at this time.
0 commit comments