Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest adding an event for PointerInputDeviceChanges #41

Open
mattrq opened this issue Apr 26, 2022 · 0 comments
Open

Suggest adding an event for PointerInputDeviceChanges #41

mattrq opened this issue Apr 26, 2022 · 0 comments

Comments

@mattrq
Copy link

mattrq commented Apr 26, 2022

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:

  • One that fires frequently, e.g.pointerMove. Too frequent, requires additional overhead to ignore repeated calls for the same input type.
  • One that fires at the point of interaction, e.g. 'pointerdown`. May be detected too late to switch input affordance changes.

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

@mattrq mattrq changed the title Suggest have an event for Suggest have an event for PointerInputDeviceChanges Apr 26, 2022
@mattrq mattrq changed the title Suggest have an event for PointerInputDeviceChanges Suggest adding an event for PointerInputDeviceChanges Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant