0

What are pointer events and why should I use them?

I know touch and mouse events, but didn't know about pointer events till now, why would I ever use them if I can use touch and mouse events instead?

7th Apr 2021, 8:55 PM
Karak10
Karak10 - avatar
1 Réponse
+ 2
There are various types of input devices and mechanisms (e.g. mouse, pen/stylus, touchscreen). Pointer events try to bring everything together under one system/model. The goal is to not care about the specifics of the hardware and just see everything as a generic input device. That way, you can use one set of events to accommodate every type of input device.
7th Apr 2021, 9:07 PM
CamelBeatsSnake
CamelBeatsSnake - avatar