From f23a649011f9fe27eb44085bfb5c10c34e143ba4 Mon Sep 17 00:00:00 2001 From: cybice Date: Mon, 22 Aug 2016 17:42:51 +0300 Subject: [PATCH] Fix incorrect onChildMouseDown is called when marker is already removed --- src/google_map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/google_map.js b/src/google_map.js index 825c6f0..399fe05 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -791,6 +791,9 @@ export default class GoogleMap extends Component { if (this.markersDispatcher_) { const currTime = (new Date()).getTime(); if (currTime - this.dragTime_ > K_IDLE_TIMEOUT) { + // Hovered marker detected at mouse move could be deleted at mouse down time + // so it will be good to force hovered marker recalculation + this._onMapMouseMove(event); this.markersDispatcher_.emit('kON_MDOWN', event); } }