Skip to content

Commit d3ed667

Browse files
authored
fix: allow vertical scroll in usePointerSwipe (#4637) (#4720)
1 parent 43903a0 commit d3ed667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/usePointerSwipe/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ export function usePointerSwipe(
156156
]
157157

158158
tryOnMounted(() => {
159-
// Disable scroll on for TouchEvents
160-
targetRef.value?.style?.setProperty('touch-action', 'none')
159+
// Allow vertical scrolling, disable horizontal scrolling by touch
160+
targetRef.value?.style?.setProperty('touch-action', 'pan-y')
161161

162162
if (disableTextSelect) {
163163
// Disable text selection on swipe

0 commit comments

Comments
 (0)