w3c / input-events

Input Events
https://w3c.github.io/input-events/
Other
24 stars 16 forks source link

[feature request] Standardize long press touch event #116

Closed Thaina closed 3 years ago

Thaina commented 3 years ago

In mobile device it was common for application to handle long press as context menu or simulated right click. We can simulate it with start and timer. But it not standard so we have to reimplement it. The threshold also actually varied between platform and could be customized from OS setting

For consistent experience, I would like to have standard long press event that will use OS's threshold to fire event if the element was bind to it

<div onlongpress="longPressEvent(e)">
    open context menu
</div>

Is it possible?

rniwa commented 3 years ago

This is not an appropriate venue to discuss that. Please go file an issue at https://github.com/w3c/touch-events