MCPcopy Create free account
hub / github.com/cartesiancs/map3d / handleTouchEnd

Function handleTouchEnd

src/components/map/SelectMap.tsx:91–99  ·  view source on GitHub ↗
(e: TouchEvent)

Source from the content-addressed store, hash-verified

89 };
90
91 const handleTouchEnd = (e: TouchEvent) => {
92 if (firstPoint) {
93 const latlng = lastLatlngRef.current || firstPoint;
94
95 onDrawChange(new L.LatLngBounds(firstPoint, latlng));
96 onChange(new L.LatLngBounds(adjustLng(firstPoint), adjustLng(latlng)));
97 setFirstPoint(null);
98 }
99 };
100
101 container.addEventListener("touchstart", handleTouchStart);
102 container.addEventListener("touchmove", handleTouchMove);

Callers

nothing calls this directly

Calls 1

adjustLngFunction · 0.85

Tested by

no test coverage detected