-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
mouse offscreen behaviors bugfix #8030
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
Conversation
97ba3a0
to
848fe95
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.
Small typo in comments, otherwise looks good to me!
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.
Just some minor typo, otherwise looks great to me!
Co-authored-by: Perminder Singh <[email protected]>
Co-authored-by: Perminder Singh <[email protected]>
Quick update - there's a really weird lag in the locked condition - here's a recording of me moving the mouse at about a constant speed, then requesting pointer lock (iff pink background): Untitled3.movI'm not quite able to reproduce it consistently, for example this sketch which is using the same build at the local version in the video (both at no specific zoom level), doesn't have this: https://editor.p5js.org/ksen0/sketches/jX3A7w1dL EDIT: Occurs specifically when "developer tools" are open, which is the behavior in earlier versions. Therefore, will merge |
Addresses #8022
Build used by https://editor.p5js.org/ksen0/sketches/jX3A7w1dL - this sketch also allows to manually test movedX/Y with and without pointer lock, at different zoom levels.
The proposed bugfix uses a different moved X/Y mechanism if pointer lock is on or off. The documentation is also updated to more precisely describe behavior during pointerlock.