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

Label scrubbing should use pointerLock and wrap around the screen #6196

Closed
maltenuhn opened this issue Aug 7, 2024 · 0 comments · Fixed by #6239
Closed

Label scrubbing should use pointerLock and wrap around the screen #6196

maltenuhn opened this issue Aug 7, 2024 · 0 comments · Fixed by #6239
Assignees
Labels
Inspector Affects the inspector, settings, commands Performance

Comments

@maltenuhn
Copy link
Member

maltenuhn commented Aug 7, 2024

Problem
Utopia input labels are scrubbable, but this scrubbing suffers from a number of issues:

  • it is slow to update the inspector and canvas
  • since the inspector is close to the edge of the screen, it sometimes means you run out of room (esp for large positive numbers like left)
  • the mouse can trigger hover effects on the canvas or other inputs, which looks unprofessional

Solution

  • Use the pointerLock API
  • Draw a simulated mouse pointer
  • wrap that pointer around the screen horizontally

Existing work

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Inspector Affects the inspector, settings, commands Performance
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants