Closed remlostime closed 5 years ago
@remlostime are you experiencing this issue within a UITableViewCell? I get the normal response in a plain UIView. But when trying to using the ActiveLabel in a UITableViewCell I am seeing a several second delay. Almost as if it's a long press gesture opposed to a tap.
That's true. It's in cell. Do you have idea how to fix it? @chrisdhaan
@remlostime I have not found a solution yet and spent almost an entire day looking for one. @poolqf is this behavior that you experience when running Active Label in a UITableViewCell?
@chrisdhaan @remlostime You can fix this using:
tap.cancelsTouchesInView = false
For example I have a gesture on my entire view, but the above line will pass the touch through to the ActiveLabel, and should work!
let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(CommentsViewController.dismissKeyboard))
tap.cancelsTouchesInView = false
view.addGestureRecognizer(tap)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It takes me 5s to tap hash tag or name tag to trigger the touch action. Otherwise, there is no response. Don't know why?