forked from shadowfacts/Tusker
parent
32c5eee0b5
commit
13a807ba4f
|
@ -105,7 +105,11 @@ class PollOptionsView: UIControl {
|
|||
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
// don't let subviews receive touch events
|
||||
return self
|
||||
if isEnabled {
|
||||
return self
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - UIControl
|
||||
|
|
Loading…
Reference in New Issue