Fix HUDButton hitTest method

This commit is contained in:
Jed Fox 2022-12-20 14:01:46 -05:00
parent 7553b0aae6
commit cd9e013a40
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 5 additions and 1 deletions

View File

@ -68,6 +68,10 @@ public class HUDButton: UIView {
}
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
button
if self.point(inside: point, with: event) {
return button
} else {
return nil
}
}
}