From fdd725ec4211ed2f4d4fbd327ab779b4e70dda8a Mon Sep 17 00:00:00 2001 From: Benjamin Clark Date: Tue, 16 Aug 2022 16:05:46 -0400 Subject: [PATCH] Fix another issue caused after we select a street view photo and ease the map to show it at the center. --- modules/renderer/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/renderer/map.js b/modules/renderer/map.js index 5388f5f1c8..727b935477 100644 --- a/modules/renderer/map.js +++ b/modules/renderer/map.js @@ -296,7 +296,7 @@ export function rendererMap(context) { function zoomPan(event, key, transform) { if (!_zoomPanEnabled) return; - if (!_dblClickZoomEnabled && event.sourceEvent.type === 'dblclick') return; + if (!_dblClickZoomEnabled && event.sourceEvent?.type === 'dblclick') return; var source = event && event.sourceEvent || event; var eventTransform = transform || (event && event.transform);