mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
parent
65c2250e6a
commit
2170819237
@ -725,6 +725,8 @@ export default class GoogleMap extends Component {
|
||||
|
||||
_onMapClick = (event) => {
|
||||
if (this.markersDispatcher_) {
|
||||
// support touch events and recalculate mouse position on click
|
||||
this._onMapMouseMove(event);
|
||||
const currTime = (new Date()).getTime();
|
||||
if (currTime - this.dragTime_ > K_IDLE_TIMEOUT) {
|
||||
if (this.mouse_) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user