Skip to content

Commit cc89e99

Browse files
committed
fix(core): respect zoom key when hovering nopan elements
1 parent 0a4e27b commit cc89e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/container/Viewport/Viewport.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ onMounted(() => {
190190
// if the target element is inside an element with the nopan class, we prevent panning
191191
if (
192192
isWrappedWithClass(event, noPanClassName.value) &&
193-
(event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel'))
193+
(event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel' && !zoomKeyPressed.value))
194194
) {
195195
return false
196196
}

0 commit comments

Comments
 (0)