The problem appeared after the version change, but it actually occurs completely at random.
It happens from one point of the model, but not from another.
We want to help you @Gircsi117, but we’re just shooting in the dark without more context. Right now, @alex has shared the working code, and without a clear way to reproduce the issue or provide further details from your side, we can’t diagnose what might be going wrong.
If the issue happens randomly, it might not be an API problem but rather something environmental in your code. Can you provide:
A minimal example that demonstrates the issue you describe (e.g., a StackBlitz or CodeSandbox project, even a GitHub, etc).
Any console errors or unusual camera behavior you notice when the offset happens.
Steps that reliably trigger the problem.
That way, we can actually troubleshoot rather than guessing. Let us know!
Orbiting around cursor properly works only when you’re dealing with meshes. Lines and points are not supported yet. I can’t tell what your scene consists of just by looking at it, but there are things resembling lines in there. So the easy solution is just to turn off the feature like I show above