mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
don't dismiss if pan is over actionsheet
This commit is contained in:
parent
41af4f8c9d
commit
093a5eaa68
|
@ -445,6 +445,11 @@ class MessageActionSheetView: UIView, MessageActionViewDelegate {
|
||||||
actionStackView.autoPinToSuperviewEdges()
|
actionStackView.autoPinToSuperviewEdges()
|
||||||
|
|
||||||
self.clipsToBounds = true
|
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) {
|
required init?(coder aDecoder: NSCoder) {
|
||||||
|
|
Loading…
Reference in a new issue