mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fix const (for scrollable pages)
This commit is contained in:
parent
eb22b6a2de
commit
db6a77f93b
@ -650,7 +650,7 @@ export default class GoogleMap extends Component {
|
||||
if (!this.mouseInMap_) return;
|
||||
|
||||
const currTime = (new Date()).getTime();
|
||||
const K_RECALC_CLIENT_RECT_MS = 3000;
|
||||
const K_RECALC_CLIENT_RECT_MS = 50;
|
||||
|
||||
if (currTime - this.mouseMoveTime_ > K_RECALC_CLIENT_RECT_MS) {
|
||||
this.boundingRect_ = e.currentTarget.getBoundingClientRect();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user