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?
1 ответ
+ 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.