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

Consider a hasDeterministicPointerId capability #43

Open
RByers opened this issue Dec 14, 2022 · 1 comment
Open

Consider a hasDeterministicPointerId capability #43

RByers opened this issue Dec 14, 2022 · 1 comment

Comments

@RByers
Copy link
Member

RByers commented Dec 14, 2022

From discussion of @bmathwig's DeviceId proposal
on blink-dev and in w3c/pointerevents#353

Consider adding a boolean or enum which indicates where PointerEvent#pointerId is coupled to a particular hardware device.

@mustaqahmed
Copy link

To me, input-device-capabilities seems to be the best place even for the devideId field. This seems logical because deviceId is about the device firing the event, and not directly related to the pointer event being fired.

We can reserve special values (say -1) to report an unsupported hardware.

One catch with deviceId is that it could be initially unknown because of the hardware limitations @bmathwig observed, so I was unsure whether input-device-capabilities reporting a "changing value" would be acceptable or not. Good news is that we have a closely related Windows API where a field can change values: Devices.Input.MouseCapabilities.SwapButtons.

Thoughts?

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

2 participants