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

Pan speed is too fast #72

Open
MattFerraro opened this issue Jun 1, 2024 · 2 comments
Open

Pan speed is too fast #72

MattFerraro opened this issue Jun 1, 2024 · 2 comments
Labels
3D UI bug Something isn't working good first issue Good for newcomers

Comments

@MattFerraro
Copy link
Collaborator

On my macbook, on both Chrome and Firefox, on both a retina screen and a standard DPI screen, the pan functionality of the camera controller is too fast. The screen moves faster than the mouse does.

Strangely, on the retina screen it is only a little bit too fast. On the standard screen it moves much faster.

Expected behavior is a "natural" pan where the scene tracks the mouse cursor exactly no matter the browser or screen density.

@MattFerraro MattFerraro added bug Something isn't working good first issue Good for newcomers 3D UI labels Jun 1, 2024
@sebsebmc
Copy link
Contributor

Is the expectation that the scene origin is what pans across the screen an equivalent amount to what the mouse moves in screen space? I believe other 3D interfaces usually allow dropping an anchor that represents the point in the scene that is referenced when panning or rotating about.

@MattFerraro
Copy link
Collaborator Author

yeah, the expectation I have is that when I click the mouse to pan and then move it 100 pixels to the left, every single pixel on the screen moves 100 pixels to the left and a new 100 pixels worth of scene content appears on the right. Note that this effect is only possible with an Orthographic camera, but that's the kind we use. When we want to support a Perspective camera someday we'll have to work out which one depth into the Scene has that property, which we'd probably resolve with the anchor approach as you described!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3D UI bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants