Show info on zoomed out tap
This commit is contained in:
@@ -251,7 +251,6 @@ const ImageItem = ({
|
|||||||
// Go back to 1:1 using the identity vector.
|
// Go back to 1:1 using the identity vector.
|
||||||
let t = createTransform()
|
let t = createTransform()
|
||||||
committedTransform.value = withClampedSpring(t)
|
committedTransform.value = withClampedSpring(t)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
runOnJS(onTap)()
|
runOnJS(onTap)()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -117,9 +117,8 @@ const ImageItem = ({
|
|||||||
height: SCREEN.height,
|
height: SCREEN.height,
|
||||||
animated: true,
|
animated: true,
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
onTap()
|
|
||||||
}
|
}
|
||||||
|
onTap()
|
||||||
}
|
}
|
||||||
|
|
||||||
const singleTap = Gesture.Tap().onEnd(() => {
|
const singleTap = Gesture.Tap().onEnd(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user