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

Function mousemove

src/components/map/SelectMap.tsx:50–58  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

48 }
49 },
50 mousemove(e) {
51 if (firstPoint) {
52 lastLatlngRef.current = adjustLng(e.latlng);
53 onDrawChange(new L.LatLngBounds(firstPoint, e.latlng));
54 onChange(
55 new L.LatLngBounds(adjustLng(firstPoint), adjustLng(e.latlng))
56 );
57 }
58 },
59 mouseup(e) {
60 if (firstPoint) {
61 onDrawChange(new L.LatLngBounds(firstPoint, e.latlng));

Callers

nothing calls this directly

Calls 1

adjustLngFunction · 0.85

Tested by

no test coverage detected