-
Notifications
You must be signed in to change notification settings - Fork 926
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 data in DeviceEvent::MouseMotion
when using CursorGrabMode::Confined
#3803
Conversation
b7fef07
to
07bcbe0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd assume that you mean Locked
pointer, which is the one that stays in place.
Also, could you change the cursor position when the cursor is locked, since it's other API that usually works with locked cursor?
And I'd assume there's no way to confine cursor at all on web?
You can't change the cursor position on Web. What other API?
Not AFAIK. |
07bcbe0
to
948c4b4
Compare
Locked cursor is usually works in pair with On Wayland, for example, where manipulating with cursor is also prohibited, the locked pointer has its own method to set its position, but it only works when you have the cursor lock present. It's not really mandatory, it's just changes how you write things basically. |
Ah I see! Is the cursor not hidden in other backends when locked? |
it's generally not hidden and users tend to hide it themselves. |
948c4b4
to
c6ec755
Compare
Ah,
I removed some duplicate documentation now that I see |
c6ec755
to
6f6601b
Compare
6f6601b
to
261af52
Compare
This uses
Element.requestPointerLock
with theunadjustedMovement
options, which is notable only supported by Chrome and even there not on Linux.I also updated the documentation to properly reflect the current state.
Needs entry in #2875.
Fixes #3547.