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