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

Function onScroll

packages/react-aria/src/interactions/usePress.ts:929–939  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

927 };
928
929 let onScroll = (e: Event) => {
930 if (state.isPressed && nodeContains(getEventTarget(e) as Element, state.target)) {
931 cancelEvent({
932 currentTarget: state.target,
933 shiftKey: false,
934 ctrlKey: false,
935 metaKey: false,
936 altKey: false
937 });
938 }
939 };
940
941 pressProps.onDragStart = e => {
942 if (!nodeContains(e.currentTarget, getEventTarget(e))) {

Callers 1

useScrollWheelFunction · 0.70

Calls 2

nodeContainsFunction · 0.90
getEventTargetFunction · 0.90

Tested by

no test coverage detected