-
-
Notifications
You must be signed in to change notification settings - Fork 514
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 events get passed to the parent #317
Comments
I will check this issue after releasing v1.7.3. |
@Mattijah
I think this will make it work the way you expect it to. |
Thanks @scenee. This does seem to help. It is still not 100% and hovering with a finger over the button affects the underlying panel (it moves up/down - so that means it also accepts touches), but at least the touchUpInside event now gets recognised. |
@Mattijah |
@scenee pod 'FloatingPanel', '~> 2.0.0-beta.1' has same issue. |
@make2a v1: Returns false in |
Hi, first of all thanks for this great library. On both instances the collection view works normally, it scrolls and select items, but the uibutton to programmatically close the floating panel don't work unless I first drag the floating panel. I can see the button tapped but the associated action won't be called. I've tried to add the same button on the first instance, and it works flawlessly. One side note is that when I instantiate the first fpc I didn't set the panGestureRecognizer.delegateProxy, I've tried adding it for the second panel with no luck. |
Hi, @macshodan. Does your problem still occure on v2.0.1? Because v2.0.1 has a bug fix on a button tap, #396. |
Hi @scenee, just tried and it's fixed. Thanks a lot for your support! |
The 2.0.1 fix solved a similar issue for me, moving the panel using move(to:animated:) made all buttons inside stop working until the panel was dragged. Thank you so much for the fix! |
Only a perfect, direct taps get recognised by UIButton. In case of a little movement, the tap event is passed to the parent and handled by the pan gesture.
Can be tested in: Samples > Show Panel Modal (contains 3 buttons)
Steps:
Instead, any touchUpInside that happens within the actual button should be registered. This makes more sense in cases where buttons are displayed in the content view, but the stay fixed at certain position and don't move with the panel (imagine something like a tabbar that comes up, but then stays fixed). How can the pan gesture in such cases be disabled? I couldn't find any relevant delegate methode, moreover
panGestureRecognizer.delegate
cannot be modified.The text was updated successfully, but these errors were encountered: