diff --git a/src/assets/js/app/components/CameraControlPanel.js b/src/assets/js/app/components/CameraControlPanel.js index c3b8889..242edc1 100644 --- a/src/assets/js/app/components/CameraControlPanel.js +++ b/src/assets/js/app/components/CameraControlPanel.js @@ -57,6 +57,8 @@ function CameraControlPanel({ app }) { useEffect(() => { const handleChange = () => { + app.refresh(); + setRadius(orbitControls.getDistance()); setTheta(orbitControls.getAzimuthalAngle()); setPhi(orbitControls.getPolarAngle());