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

Function handleTouchStart

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

Source from the content-addressed store, hash-verified

70 useEffect(() => {
71 const container = map.getContainer();
72 const handleTouchStart = (e: TouchEvent) => {
73 if (!isDrag && e.touches.length > 0) {
74 const touch = e.touches[0];
75 const latlng = map.mouseEventToLatLng(touch as any);
76 setFirstPoint(latlng);
77 }
78 };
79
80 const handleTouchMove = (e: TouchEvent) => {
81 if (firstPoint && e.touches.length > 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected