Reduce dismiss threshold

This commit is contained in:
Justin Mazzocchi 2021-02-21 16:13:18 -08:00
parent a7dc1eb1f1
commit 924e7614bd
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ final class ZoomDismissalInteractionController: NSObject {
fromReferenceView.isHidden = true
let anchorPoint = CGPoint(x: fromReferenceViewFrame.midX, y: fromReferenceViewFrame.midY)
let dismissThreshold = fromReferenceViewFrame.height / 8
let dismissThreshold = fromReferenceViewFrame.height / 10
let translatedPoint = gestureRecognizer.translation(in: fromReferenceView)
let backgroundAlpha = backgroundAlphaFor(view: fromVC.view, withPanningVerticalDelta: translatedPoint.y)