1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-11 00:45:54 +01:00

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

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)