mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fix google api bug
This commit is contained in:
parent
39d5b54059
commit
438bc12296
@ -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_);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user