lundi 12 janvier 2015

JS: How to recognise if a mouse event is provided by touch (not mouse)


I would like to manage mouse and touch events separately even on hybrid devices.


How to disable mouse events (click, mousedown, up...) or detect if the event is provided by mouse or touch.


Currently when I touch an object it produces: - touch start - mouse enter (unwanted) - mouse down (unwanted)


Thank you for an advice :)





Aucun commentaire:

Enregistrer un commentaire