From 9c28a498116643b596d817299b2b72dff73a4dbf Mon Sep 17 00:00:00 2001 From: alex leon Date: Tue, 2 Aug 2016 15:23:21 +1000 Subject: [PATCH 1/2] call zoomControlClickTime on all clicks --- src/google_map.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/google_map.js b/src/google_map.js index 6c3b4fd7..c719939d 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -764,9 +764,7 @@ export default class GoogleMap extends Component { _onMapMouseDownCapture = () => { if (detectBrowser().isChrome) { // to fix strange zoom in chrome - if (!this.mouse_) { - this.zoomControlClickTime_ = (new Date()).getTime(); - } + this.zoomControlClickTime_ = (new Date()).getTime(); } } From 785cb5f7a478818d6f8244634b3b8e680f56539f Mon Sep 17 00:00:00 2001 From: Alex Leon Date: Thu, 21 Dec 2017 09:26:02 +1100 Subject: [PATCH 2/2] Update google_map.js --- src/google_map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google_map.js b/src/google_map.js index 67435a83..b6e17d09 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -949,7 +949,7 @@ export default class GoogleMap extends Component { _onMapMouseDownCapture = () => { if (detectBrowser().isChrome) { // to fix strange zoom in chrome - this.zoomControlClickTime_ = (new Date()).getTime(); + this.zoomControlClickTime_ = new Date().getTime(); } };