fix(core): respect zoom key when hovering nopan elements
This commit is contained in:
@@ -190,7 +190,7 @@ onMounted(() => {
|
|||||||
// if the target element is inside an element with the nopan class, we prevent panning
|
// if the target element is inside an element with the nopan class, we prevent panning
|
||||||
if (
|
if (
|
||||||
isWrappedWithClass(event, noPanClassName.value) &&
|
isWrappedWithClass(event, noPanClassName.value) &&
|
||||||
(event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel'))
|
(event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel' && !zoomKeyPressed.value))
|
||||||
) {
|
) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user