File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const kEPS = 0.00001;
40
40
const K_GOOGLE_TILE_SIZE = 256 ;
41
41
// real minZoom calculated here _getMinZoom
42
42
const K_IDLE_TIMEOUT = 100 ;
43
+ const K_IDLE_CLICK_TIMEOUT = 300 ;
43
44
const DEFAULT_MIN_ZOOM = 3 ;
44
45
45
46
function defaultOptions_ ( /* maps */ ) {
@@ -681,10 +682,11 @@ export default class GoogleMap extends Component {
681
682
}
682
683
}
683
684
685
+ // K_IDLE_CLICK_TIMEOUT - looks like 300 is enough
684
686
_onClick = ( ...args ) =>
685
687
this . props . onClick &&
686
688
! this . childMouseDownArgs_ &&
687
- ( ( new Date ( ) ) . getTime ( ) - this . childMouseUpTime_ ) > K_IDLE_TIMEOUT &&
689
+ ( ( new Date ( ) ) . getTime ( ) - this . childMouseUpTime_ ) > K_IDLE_CLICK_TIMEOUT &&
688
690
this . dragTime_ === 0 &&
689
691
this . props . onClick ( ...args )
690
692
You can’t perform that action at this time.
0 commit comments