Skip to content

Commit

Permalink
Fix another issue caused after we select a street view photo and ease…
Browse files Browse the repository at this point in the history
… the map to show it at the center.
  • Loading branch information
Bonkles committed Aug 16, 2022
1 parent 9e25997 commit fdd725e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/renderer/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fdd725e

Please sign in to comment.