Skip to content

How do I extend HTML element #3853

@dexbol

Description

@dexbol

For 300ms click delay problem, I need attach four events to a element (onClick onTouchStart onTouchMove onTouchEnd) .It makes a bit tedious that there are so many elements to be clickable.

I can create a element, maybe named <Tap />, and receive property ontap and attache four events to the element to implement tap event. But I think it is bad for semantic, tap is a action.

So, the question is how I can extend HTML tag like div, a, em to support tap event, do you have any other ideas for this problem?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions