From 438bc12296ef2d18d3bd06099ee22ce02426460c Mon Sep 17 00:00:00 2001 From: cybice Date: Thu, 29 Dec 2016 19:16:44 +0300 Subject: [PATCH] Fix google api bug --- src/google_map.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google_map.js b/src/google_map.js index f627bae..4dbfc32 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -340,6 +340,8 @@ export default class GoogleMap extends Component { } if (this.maps_ && this.map_) { + // fix google, as otherwise listeners works even without map + this.map_.setOptions({ scrollwheel: false }); this.maps_.event.clearInstanceListeners(this.map_); }