forked from shadowfacts/Tusker
Enable trackpad scrolling to dismiss gallery
This commit is contained in:
parent
b4693252be
commit
23e5e87915
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue