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

Web: make use of PointerEvent.persistentDeviceId #3871

Open
daxpedda opened this issue Aug 15, 2024 · 0 comments
Open

Web: make use of PointerEvent.persistentDeviceId #3871

daxpedda opened this issue Aug 15, 2024 · 0 comments
Labels
DS - web S - enhancement Wouldn't this be the coolest?

Comments

@daxpedda
Copy link
Member

daxpedda commented Aug 15, 2024

Currently PointerEvent.pointerId is used to build DeviceId, however this isn't perfect because the same device can get a new ID when it is disabled during a session. E.g. your mouse is plugged and the unplugged: it will get a new DeviceId. This is especially bad for non-connected (battery-free) pens, which get a new DeviceId every time they leave the maximum hover distance.

For this reason a new PointerEvent.persistentDeviceId was introduced, which identifies a specific device by a unique device ID throughout the whole session.
This is supported by default on Chrome since v128.

W3C
Caniuse
WPT
Firefox Standard Positions
WebKit Standard Positions

@daxpedda daxpedda added S - enhancement Wouldn't this be the coolest? DS - web labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - web S - enhancement Wouldn't this be the coolest?
Development

No branches or pull requests

1 participant