Merge pull request #2842 from omnivore-app/fix/ios-swipe-back-gesture-tolerance

Tweak the tolerance of the swipe back gesture
This commit is contained in:
Jackson Harper 2023-10-04 07:56:16 +08:00 committed by GitHub
commit cd06fdb0d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,8 +96,8 @@
}
case .ended:
// Continue if drag more than 20% of screen width or velocity is higher than 1000
if percent > 0.2 || velocity > 1000 {
// Continue if drag more than 30% of screen width or velocity is higher than 1000
if percent > 0.30 || velocity > 1000 {
if let pop = self.pop {
pop()
}