You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GizmoHelper has a weird glitch where if I select the top of the cube (or the lines with dots controller) it will not always correctly go to the top view square to the bottom, but instead at a weird angle. If you click it again, it will sometimes correct.
If anyone gets this issue I'm assuming you're running with orbit controls? I've found that disabling damping fixes this for me, it looks like when you click the gizmo, if your mouse leaves the damping that is applied on click messes with the rotation. If you need damping maybe try disable it just when the gizmo is tweening the camera - hope this helps someone!
I'm using the most up to date version of drei. I was also able to replicate this in the storybook at: https://drei.pmnd.rs/?path=/docs/gizmos-gizmohelper--docs
Problem description:
The GizmoHelper has a weird glitch where if I select the top of the cube (or the lines with dots controller) it will not always correctly go to the top view square to the bottom, but instead at a weird angle. If you click it again, it will sometimes correct.
Relevant code:
Storybook code:
Suggested solution:
the cube should always orient such that the text of the selected side is readable, and the cube is square to the viewport window.
Here is a video of what I mean:
https://github.com/user-attachments/assets/b9159b77-496f-4f8f-9222-3891b734d8fb
The text was updated successfully, but these errors were encountered: