Skip to content

Commit

Permalink
feat: correct orbit controls auto rotate invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jun 6, 2024
1 parent c159dc2 commit 83503c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/controls/OrbitControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,9 @@ onBeforeRender(() => {
if (controlsRef.value && (enableDamping.value || autoRotate.value)) {
controlsRef.value.update()
invalidateOnDemand()
if (autoRotate.value) {
invalidateOnDemand()
}
}
})
Expand Down

0 comments on commit 83503c5

Please sign in to comment.