Fix not being able to collapse/expand statuses

Instead of simply returning the content text view from hitTest(_:with:),
we need to call the super method so that the system still performs its
own checks.
This commit is contained in:
Shadowfacts 2020-01-18 18:38:00 -05:00
parent e19364abdf
commit 38085eee37
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ class ContentTextView: LinkTextView {
// only accept touches that are over a link
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
if getLinkAtPoint(point) != nil || isSelectable {
return self
return super.hitTest(point, with: event)
} else {
return nil
}