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

Function handleTouchMove

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

Source from the content-addressed store, hash-verified

78 };
79
80 const handleTouchMove = (e: TouchEvent) => {
81 if (firstPoint && e.touches.length > 0) {
82 const touch = e.touches[0];
83 const latlng = map.mouseEventToLatLng(touch as any);
84 lastLatlngRef.current = latlng;
85
86 onDrawChange(new L.LatLngBounds(firstPoint, latlng));
87 onChange(new L.LatLngBounds(adjustLng(firstPoint), adjustLng(latlng)));
88 }
89 };
90
91 const handleTouchEnd = (e: TouchEvent) => {
92 if (firstPoint) {

Callers

nothing calls this directly

Calls 1

adjustLngFunction · 0.85

Tested by

no test coverage detected