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

Pointer Lock cursor #2

Open
gsimone opened this issue Nov 7, 2020 · 0 comments
Open

Pointer Lock cursor #2

gsimone opened this issue Nov 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@gsimone
Copy link
Member

gsimone commented Nov 7, 2020

Figma wraps the cursor on the other side of the screen when reaching one of the sides, allowing for infinite adjustment when dragging.

This is achieved using a virtualized cursor and pointer-lock

https://stackoverflow.com/questions/4752501/move-the-mouse-pointer-to-a-specific-position
https://mdn.github.io/dom-examples/pointer-lock/

@gsimone gsimone changed the title Wrapping cursor Pointer Lock cursor Feb 20, 2021
@dbismut dbismut added the enhancement New feature or request label Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants