I'm using contextmenu
event to capture right clicks. On touch devices that event fired via "long press".
The problem I'm experiencing is that the contextmenu
event doesn't fire on touch devices until touch is released. I could listen for touchstart
/mousedown
events and set timeout, but it won't be accurate since each device might have its own delay for long press
activation.
So, is there a way accurately detect when long press
is activated on touch screen devices? (On some devices there is haptic feedback when long press
was activated)