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()
|
super.init()
|
||||||
let panRecognizer = UIPanGestureRecognizer(target: self, action: #selector(panRecognized))
|
let panRecognizer = UIPanGestureRecognizer(target: self, action: #selector(panRecognized))
|
||||||
panRecognizer.delegate = self
|
panRecognizer.delegate = self
|
||||||
|
panRecognizer.allowedScrollTypesMask = .continuous
|
||||||
viewController.view.addGestureRecognizer(panRecognizer)
|
viewController.view.addGestureRecognizer(panRecognizer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue