Only allow continuous scroll gestures to dismiss gallery

This commit is contained in:
Shadowfacts 2022-12-17 17:55:05 -05:00
parent ce708e2d16
commit 8b718ce50b
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class LargeImageInteractionController: UIPercentDrivenInteractiveTransition {
super.init()
self.viewController = viewController
let panRecognizer = UIPanGestureRecognizer(target: self, action: #selector(handleGesture(_:)))
panRecognizer.allowedScrollTypesMask = .all
panRecognizer.allowedScrollTypesMask = .continuous
viewController.view.addGestureRecognizer(panRecognizer)
}