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
Bug on tap action #50
Comments
@Josuepdc could you please provide more info on your local setup and view/gestures hierarchy? The issue doesn't seem to occur on the example project. Also, your suggestion may fix your problem but won't work if the button is inside a view with a |
I have the same problem. You need to hold the button for it to publish a 'tap up' event. |
@landa could you please provide more info on your local setup and view/gestures hierarchy? The issue doesn't seem to occur on the example project. Thanks. |
@loregr any particular reason why you are not calling super at the beginning of touchesBegan, touchesEnded, etc? not sure but this might also fix the issue. |
@l3bel what exactly should I do? I'm not overriding a function, so there's no super to call. I'm just using a touch up inside IBAction. |
@landa
` |
Experiencing the same thing but @Josuepdc 's branch fixed it |
@jmoscatiello @landa without the if test in place (removed in @Josuepdc 's branch) it is not possible to "cancel" a tap (by means of lifting finger outside of the control). Have you tried what @loregr and myself suggest above (using version 1.1.3 and/or adding calls to super.touches... )? |
I tried it out. Seems to work! Thanks guys |
@jmoscatiello thanks for your reply, glad it worked. Did 1.1.3 work "as is" or did you have to add the calls to super.touchesBla? |
I had to add to the calls. Not a big deal. |
Hi all, sorry for the late response but I've been away for the weekend with no access to my laptop. Anyway thanks @l3bel for having followed the discussion and for having provided great suggestions. I'm still not able to replicate the issue, but I've just released v1.1.5 where I've implemented some improvements based on the discussion above. @jmoscatiello or whoever else was getting the issue, could you please check if it is now fixed in the latest release? Thanks 🌟 |
I'm closing this issue since I'm pretty confident it has been fixed with the latest release. If that's not the case feel free to re-open it. |
Didn't get to look into it yet, but I still see this in 1.1.5 |
I'm also still seeing this issue. |
@rachelrobynslater just connect touch up inside to the method to connect the click, by default it wont work. |
After updating from 1.0.5 to 1.1.1, I need to hold the button to receive the IBAction in my view controller instead of just tap the button. I tested some things and found that if you remove the "if" of line 708 of file "LGButton.swift" (based on commit 3dfd991), the problem will no longer exists.
The text was updated successfully, but these errors were encountered: