mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
feat: disabled horizontal scrolling functionality when scrolling with the mouse
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user