mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
call zoomControlClickTime on all clicks (#211)
* call zoomControlClickTime on all clicks * Update google_map.js
This commit is contained in:
parent
32d95ab4b7
commit
e4fa5ff822
@ -969,9 +969,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();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user