(e: TouchEvent)
| 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) { |
nothing calls this directly
no test coverage detected