MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onMoveStart

Function onMoveStart

packages/react-aria/src/table/useTableColumnResize.ts:183–189  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

181 const columnResizeWidthRef = useRef<number>(0);
182 const {moveProps} = useMove({
183 onMoveStart(e) {
184 columnResizeWidthRef.current = state.getColumnWidth(item.key);
185 if (e.pointerType === 'mouse') {
186 setMouseResizing(true);
187 }
188 startResize(item);
189 },
190 onMove(e) {
191 let {deltaX, deltaY, pointerType} = e;
192 if (direction === 'rtl') {

Callers

nothing calls this directly

Calls 1

getColumnWidthMethod · 0.80

Tested by

no test coverage detected