Issue: I recently updated my speckle/viewer js package to 2.23.10.
I noticed that panning is affected and despite zoom to cursor and panning is disabled, the rotation seems to rotate on point instead of origin.
Here’s a preview of the issue:
Expected behaviour:
For example you may visit:
The camera options that I’m using are
cameraController.options = {
enableZoom: true,
enablePan: false,
zoomToCursor: false,
orbitSensitivity: -1,
};
There seems to be a behaviour difference between 2.21.2 and 2.23.10…
The issue exists on 2.23.10 regarding panning.
Thanks
jonathon
(Jonathon)
6 March 2025 13:56
2
Does this recent answer to another user of the npm viewer package help?
From what I see in your video, it seems you’re having issues with the orbiting around cursor feature which is turned on by default.
We’ve added orbiting around cursor relatively recently. Since it’s giving you trouble, I suggest you just turn the feature off
const controller = viewer.createExtension(CameraController);
controller.options = {
orbitAroundCursor: false,
showOrbitPoint: false
}
Orbiting around cursor properly works properly only when you’re dealing with meshes. Lines and poin…
1 Like
Many thanks for this @jonathon , this helped.
Would it be possible for the team to disable this by default? and also update the docs. Thanks
jonathon
(Jonathon)
7 March 2025 07:07
4
Even our docs are open source….
1 Like
Amazing, my bad, will udpate it