don't dismiss if pan is over actionsheet

This commit is contained in:
Michael Kirk 2018-07-12 11:55:35 -06:00
parent 41af4f8c9d
commit 093a5eaa68
1 changed files with 5 additions and 0 deletions

View File

@ -445,6 +445,11 @@ class MessageActionSheetView: UIView, MessageActionViewDelegate {
actionStackView.autoPinToSuperviewEdges()
self.clipsToBounds = true
// Prevent panning from percolating to the superview, which would
// cause us to dismiss
let panGestureSink = UIPanGestureRecognizer(target: nil, action: nil)
self.addGestureRecognizer(panGestureSink)
}
required init?(coder aDecoder: NSCoder) {