feat: disabled horizontal scrolling functionality when scrolling with the mouse

This commit is contained in:
Hakadao
2023-07-17 01:33:36 +08:00
parent 0bfcb8e8db
commit ef95946c74

View File

@@ -21,10 +21,10 @@ onMounted(() => {
showScrollMask.value = false
})
scrollListWrap.value.addEventListener('wheel', (event: WheelEvent) => {
event.preventDefault()
scrollListWrap.value.scrollLeft += event.deltaY
})
// scrollListWrap.value.addEventListener('wheel', (event: WheelEvent) => {
// event.preventDefault()
// scrollListWrap.value.scrollLeft += event.deltaY
// })
})
</script>