Preview in Sanbox, For this model, right clicking and moving the mouse causes objects to move at a particularly fast speed.
see: sanboxView
After reviewing the source code, Sanbox has already implemented adaptive translation speed, and for most models, it is correct. But some models seem to have adaptation issues
This was posted in the questions section but I don’t see a question I’m guessing this is a bug report?
In any case, over to @amoebachant to investigate. Note that he is out this week and will be back next week.
Thanks for reporting that @brightMoon - I was able to reproduce the panning behavior being too fast for some objects, and just merged a fix to the sandbox to use the same adaptive behavior as the viewer does: Sandbox: adapt panning sensitivity based on radius (same as viewer) (… · BabylonJS/Babylon.js@2ee29e8 · GitHub
Thanks!
Thank you for your repair speed
I found that if you drag the model to the sandbox preview, the right-click panning speed is still very fast
Hi @brightMoon, I tried loading the model you supplied in the link at the beginning of this thread in both the sandbox and viewer, and right click panning does seem consistent now between them. Give it a try in https://viewerconfig.babylonjs.com/ as well and let me know if you see it behaving consistently as well. Note that the design isn’t for the object to appear to “stick” to the mouse during panning, but to move at a reasonable rate for a large variety of scales.
Yes, in viewrconfig, the pann speed is normal.
Please watch the video for comparison:
viewerconfig:
drag sandbox:
sanbox load url:
It is evident that when dragged to the sandbox, the object moves at a faster pann speed
Interesting! I didn’t realize drag & drop made a difference, I’ll look into it - thanks!
Hey @brightMoon, I wanted to let you know I dug into this a bit, and indeed the drag & drop code path is distinct from the one which loads the model from the query string, and my fix only addressed one of those code paths. I’ll get a fix in next week to address the drag and drop path as well. Thanks for reporting this!
you are welcome
Hey @brightMoon, just wanted to let you know the sandbox now has the fix - give it a try and let me know if it’s now working better for you!
Great, it works for me