Skip to content

Should pointer event bubble up when only a tap is enabled? #8

@axelpale

Description

@axelpale

Consider a grid of tappable items. Users cannot move the view because all pointer events are caught by the tap recognisers.

A solution is to let the events propagate up in DOM when the interaction mode is set to allow only taps. Is there downsides to this?

  • Two nested elements with tap recognizers on both, would together fire two independent tap events. To distinguish the two, the tap event should carry information whether the element was the first in the bubbling hierarchy.
  • In the case of a grid full of items, a programmer could be tempted to make every item touchable. However, would it be better to recognise taps globally on the view and make individual items touchable only when needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions