fixed marker drag detail

This commit is contained in:
muerwre 2019-02-22 17:06:45 +07:00
parent dc3e8d73e5
commit f165dbb3d0

View file

@ -82,4 +82,4 @@ const distToSegmentSquared = (A: LatLng, B: LatLng, C: LatLng): number => {
const distToSegment = (A: LatLng, B: LatLng, C: LatLng): number => Math.sqrt(distToSegmentSquared(A, B, C)); const distToSegment = (A: LatLng, B: LatLng, C: LatLng): number => Math.sqrt(distToSegmentSquared(A, B, C));
// if C between A and B // if C between A and B
export const pointBetweenPoints = (A: LatLng, B: LatLng, C: LatLng): boolean => (distToSegment(A, B, C) < 0.001); export const pointBetweenPoints = (A: LatLng, B: LatLng, C: LatLng): boolean => (distToSegment(A, B, C) < 0.01);