Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Enhance SpinningGlobe component to improve map interaction on mobile devices by disabling dragPan and dragRotate features. This adjustment optimizes user experience for mobile users.

Bill Yang9d3f1a0646f1
diff --git a/docs/src/components/SpinningGlobe.tsx b/docs/src/components/SpinningGlobe.tsx
index 908b84318..955b6ac3a 100644
--- a/docs/src/components/SpinningGlobe.tsx
+++ b/docs/src/components/SpinningGlobe.tsx
@@ -640,6 +640,8 @@ export function SpinningGlobe() {
doubleClickZoom: false,
touchZoomRotate: false,
boxZoom: false,
+ dragPan: !isMobile,
+ dragRotate: !isMobile,
});
mapRef.current = map;