fix(core): use correct filter for panOnScroll class

This commit is contained in:
braks
2023-10-30 13:36:07 +01:00
committed by Braks
parent 22a8d7c913
commit 15c3fd5dd7
@@ -300,7 +300,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) &&
((!panOnScroll.value && event.type !== 'wheel') || (panOnScroll.value && event.type === 'wheel')) (event.type !== 'wheel' || (panOnScroll.value && event.type === 'wheel'))
) { ) {
return false return false
} }