Tweak the tolerance of the swipe back gesture

This commit is contained in:
Jackson Harper 2023-10-03 13:54:34 +08:00
parent c34207d5ea
commit eb7ff1bd53

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()
}