fix(core): respect pan on scroll class name
This commit is contained in:
@@ -297,7 +297,10 @@ 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 (isWrappedWithClass(event, noPanClassName.value) && event.type !== 'wheel') {
|
if (
|
||||||
|
isWrappedWithClass(event, noPanClassName.value) &&
|
||||||
|
((!panOnScroll.value && event.type !== 'wheel') || (panOnScroll.value && event.type === 'wheel'))
|
||||||
|
) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user