diff --git a/MastodonSDK/Sources/MastodonUI/View/Button/HUDButton.swift b/MastodonSDK/Sources/MastodonUI/View/Button/HUDButton.swift index 78579bb1e..566100bb6 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Button/HUDButton.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Button/HUDButton.swift @@ -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 + } } }