Skip to content

Commit 9ccbea8

Browse files
committed
chore: fix swipe gesture issue on iOS
1 parent 2298a55 commit 9ccbea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/javascripts/Components/Panes/usePaneGesture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ export const usePaneSwipeGesture = (
120120
underlayElement.style.left = '0'
121121
underlayElement.style.width = '100%'
122122
underlayElement.style.height = '100%'
123-
underlayElement.style.pointerEvents = 'none'
124123
if (adjustedGesture === 'pan') {
125124
underlayElement.style.backgroundColor = '#000'
126125
} else {
127126
underlayElement.style.background =
128127
direction === 'right'
129128
? 'linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0))'
130129
: 'linear-gradient(to left, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0))'
130+
underlayElement.style.pointerEvents = 'none'
131131
}
132132
underlayElement.style.opacity = '0'
133133
underlayElement.style.willChange = 'opacity'

0 commit comments

Comments
 (0)