mirror of
https://github.com/metabolist/metatext
synced 2024-12-11 00:45:54 +01:00
Reduce dismiss threshold
This commit is contained in:
parent
a7dc1eb1f1
commit
924e7614bd
@ -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 New Issue
Block a user