mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-24 01:01:00 +00:00
Reduce dismiss threshold
This commit is contained in:
parent
a7dc1eb1f1
commit
924e7614bd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue