WICG / input-device-capabilities

InputDevice API proposal
MIT License
17 stars 14 forks source link

Suggest adding an event for `PointerInputDeviceChanges` #41

Open mattrq opened 2 years ago

mattrq commented 2 years ago

An event to detect the capabilities of a pointer device have changed when the user switches between devices. Consider a Touchscreen laptop with pen support, a mouse and a trackpad; A user may switch between these frequently. Naming could be 'onPointerDeviceChangeoronPointerChange`.

Currently, to detect the capabilities of a device the code needs to listen to one of two types of pointer-events:

It is unclear if events such as pointerover or pointerenter will refire if a user were to switch between mouse, trackpad or touch.