-
Notifications
You must be signed in to change notification settings - Fork 49.6k
Closed
Labels
Description
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.