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: use raw mouse input when locking pointer #3547

Open
daxpedda opened this issue Mar 1, 2024 · 0 comments
Open

Web: use raw mouse input when locking pointer #3547

daxpedda opened this issue Mar 1, 2024 · 0 comments
Labels
DS - web S - platform parity Unintended platform differences

Comments

@daxpedda
Copy link
Member

daxpedda commented Mar 1, 2024

Currently when using Window::set_cursor_grab(CursorGrabMode::Locked) on Web mouse movement will contain mouse acceleration. AFAIU other backends send raw mouse events with mouse acceleration disabled, so Web should follow suit.

This would use Element.requestPointerLock with the unadjustedMovement options, which is notable only supported by Chrome and even there not on Linux.

@daxpedda daxpedda added DS - web S - platform parity Unintended platform differences labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DS - web S - platform parity Unintended platform differences
Development

No branches or pull requests

1 participant