Enable trackpad scrolling to dismiss gallery

This commit is contained in:
Shadowfacts 2024-03-31 14:08:18 -04:00
parent b4693252be
commit 23e5e87915
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ class GalleryDismissInteraction: NSObject {
super.init()
let panRecognizer = UIPanGestureRecognizer(target: self, action: #selector(panRecognized))
panRecognizer.delegate = self
panRecognizer.allowedScrollTypesMask = .continuous
viewController.view.addGestureRecognizer(panRecognizer)
}