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

Function onPointerDown

packages/react-aria/src/slider/useSlider.ts:228–233  ·  view source on GitHub ↗
(e: React.PointerEvent)

Source from the content-addressed store, hash-verified

226 onDownTrack(e, undefined, e.clientX, e.clientY);
227 },
228 onPointerDown(e: React.PointerEvent) {
229 if (e.pointerType === 'mouse' && (e.button !== 0 || e.altKey || e.ctrlKey || e.metaKey)) {
230 return;
231 }
232 onDownTrack(e, e.pointerId, e.clientX, e.clientY);
233 },
234 onTouchStart(e: React.TouchEvent) {
235 onDownTrack(
236 e,

Callers

nothing calls this directly

Calls 1

onDownTrackFunction · 0.85

Tested by

no test coverage detected