fix(core): respect pan on scroll class name

This commit is contained in:
braks
2023-10-06 18:00:01 +02:00
committed by Braks
parent c3b10dac0e
commit e36980337b
@@ -297,7 +297,10 @@ onMounted(() => {
}
// if the target element is inside an element with the nopan class, we prevent panning
if (isWrappedWithClass(event, noPanClassName.value) && event.type !== 'wheel') {
if (
isWrappedWithClass(event, noPanClassName.value) &&
((!panOnScroll.value && event.type !== 'wheel') || (panOnScroll.value && event.type === 'wheel'))
) {
return false
}