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