fix(core): respect zoom key when hovering nopan elements

This commit is contained in:
braks
2023-11-09 10:48:40 +01:00
committed by Braks
parent 0a4e27baa0
commit cc89e995fb

View File

@@ -190,7 +190,7 @@ onMounted(() => {
// if the target element is inside an element with the nopan class, we prevent panning
if (
isWrappedWithClass(event, noPanClassName.value) &&
(event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel'))
(event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel' && !zoomKeyPressed.value))
) {
return false
}