Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap gesture conflict #37

Closed
combef-luna opened this issue Aug 24, 2018 · 1 comment
Closed

Tap gesture conflict #37

combef-luna opened this issue Aug 24, 2018 · 1 comment
Labels

Comments

@combef-luna
Copy link

I use an IBAction with event "Touched up inside" and my view controller has also a UITapGestureRecognizer. When I touch my button the IBAction is not called because the tap gesture prevail. That is not the case with a UIButton.
I found that some UIControl functions setting the Hilighted property are override in the LGButton class and that is not the case in UIButton class.

The solution I used is to use my view controller as a delegate of my gesture recognizer and to check if the location of the tap is inside my button bounds.

@loregr loregr added the bug label Dec 22, 2018
@loregr
Copy link
Owner

loregr commented Dec 22, 2018

Fixed in v1.1.

@loregr loregr closed this as completed Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants