Skip to content

Commit

Permalink
Bugfix: Update camera position while animation is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
krikienoid committed Feb 19, 2023
1 parent 1f6cc83 commit 40a452f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/assets/js/app/components/CameraControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ function CameraControlPanel({ app }) {

useEffect(() => {
const handleChange = () => {
app.refresh();

setRadius(orbitControls.getDistance());
setTheta(orbitControls.getAzimuthalAngle());
setPhi(orbitControls.getPolarAngle());
Expand Down

0 comments on commit 40a452f

Please sign in to comment.