Skip to content

[Question]: How can I let views inside the gallery component handle taps ? #110

@mcoeur

Description

@mcoeur

Summary

Hi!
I'm using the gallery component to display a mix of images and custom views that contain interactive buttons.

Current behavior:
When I tap a button inside a gallery item, it triggers the gallery's tap handler instead of the button's action. I understand that this is the expected behaviour for this component.

MY Expected behavior:
I'd like the buttons to be clickable and handle their own tap events, while still allowing the tap handler to work for non-interactive areas of the gallery items.

Question:
What's the recommended approach for handling this situation? Is there a way to prevent the gallery tap handler from intercepting button taps, or should I be structuring my views differently?

Thanks for any guidance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedstaleNo activity for issues and pull request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions