Add very slow auto-rotation to Globe (pauses on drag)

This commit is contained in:
Usman Baig
2026-03-09 16:07:52 +01:00
parent 464a361094
commit 9629a5788c

View File

@@ -92,6 +92,7 @@ export default function Globe({ data, className }: GlobeProps) {
width: widthRef.current * 2,
height: widthRef.current * 2,
onRender: (state) => {
if (!pointerInteracting.current) phiRef.current += 0.002
state.phi = phiRef.current + rs.get()
state.width = widthRef.current * 2
state.height = widthRef.current * 2