chore: fix swipe gesture issue on iOS
This commit is contained in:
@@ -120,7 +120,6 @@ export const usePaneSwipeGesture = (
|
|||||||
underlayElement.style.left = '0'
|
underlayElement.style.left = '0'
|
||||||
underlayElement.style.width = '100%'
|
underlayElement.style.width = '100%'
|
||||||
underlayElement.style.height = '100%'
|
underlayElement.style.height = '100%'
|
||||||
underlayElement.style.pointerEvents = 'none'
|
|
||||||
if (adjustedGesture === 'pan') {
|
if (adjustedGesture === 'pan') {
|
||||||
underlayElement.style.backgroundColor = '#000'
|
underlayElement.style.backgroundColor = '#000'
|
||||||
} else {
|
} else {
|
||||||
@@ -128,6 +127,7 @@ export const usePaneSwipeGesture = (
|
|||||||
direction === 'right'
|
direction === 'right'
|
||||||
? 'linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0))'
|
? 'linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0))'
|
||||||
: 'linear-gradient(to left, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0))'
|
: 'linear-gradient(to left, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0))'
|
||||||
|
underlayElement.style.pointerEvents = 'none'
|
||||||
}
|
}
|
||||||
underlayElement.style.opacity = '0'
|
underlayElement.style.opacity = '0'
|
||||||
underlayElement.style.willChange = 'opacity'
|
underlayElement.style.willChange = 'opacity'
|
||||||
|
|||||||
Reference in New Issue
Block a user