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