Fix google api bug

This commit is contained in:
cybice 2016-12-29 19:16:44 +03:00
parent 39d5b54059
commit 438bc12296

View File

@ -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_);
}