Block swipe while opening
This commit is contained in:
@@ -421,14 +421,14 @@ function LightboxImage({
|
|||||||
.maxPointers(1)
|
.maxPointers(1)
|
||||||
.onUpdate(e => {
|
.onUpdate(e => {
|
||||||
'worklet'
|
'worklet'
|
||||||
if (isFlyingAway.value) {
|
if (openProgress.value !== 1 || isFlyingAway.value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
dismissSwipeTranslateY.value = e.translationY
|
dismissSwipeTranslateY.value = e.translationY
|
||||||
})
|
})
|
||||||
.onEnd(e => {
|
.onEnd(e => {
|
||||||
'worklet'
|
'worklet'
|
||||||
if (isFlyingAway.value) {
|
if (isFlyingAway.value || isFlyingAway.value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (Math.abs(e.velocityY) > 1000) {
|
if (Math.abs(e.velocityY) > 1000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user