Skip to content

Commit afd5a16

Browse files
committed
Disable globe rotation while loading
1 parent 2760b3c commit afd5a16

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/lib/components/globe/Globe.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
autoRotateSpeed={1}
4949
enableDamping
5050
enablePan={false}
51+
// Disable rotation while loading to further indicate that the globe isn't ready yet
52+
enableRotate={isLoaded}
5153
maxDistance={globeRadius * 5}
5254
minDistance={globeRadius + 0.1}
5355
onstart={() => (autoRotate = false)}

0 commit comments

Comments
 (0)