Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix white space on mobile when zooming and panning trip layout map

anandbaburajanb13a282ec17f
diff --git a/web/apps/photos/src/components/TripLayout/TripMap.tsx b/web/apps/photos/src/components/TripLayout/TripMap.tsx
index f8da0c40c2..e36673a97c 100644
--- a/web/apps/photos/src/components/TripLayout/TripMap.tsx
+++ b/web/apps/photos/src/components/TripLayout/TripMap.tsx
@@ -129,8 +129,8 @@ export const TripMap: React.FC<TripMapProps> = ({
}
url="https://tiles.stadiamaps.com/tiles/alidade_satellite/{z}/{x}/{y}{r}.jpg"
maxZoom={20}
- updateWhenZooming={false}
- keepBuffer={1}
+ updateWhenZooming={isTouchDevice ? true : false}
+ keepBuffer={isTouchDevice ? 3 : 1}
/>
{/* Draw super-clusters (clickable for zoom and gallery) */}