MCPcopy Index your code
hub / github.com/callstack/agent-device / parseScrollTarget

Function parseScrollTarget

src/core/dispatch-interactions.ts:858–865  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

856}
857
858function parseScrollTarget(input: string): {
859 direction: ReturnType<typeof parseScrollDirection>;
860 edge?: 'top' | 'bottom';
861} {
862 if (input === 'bottom') return { direction: 'down', edge: 'bottom' };
863 if (input === 'top') return { direction: 'up', edge: 'top' };
864 return { direction: parseScrollDirection(input) };
865}
866
867export async function handlePinchCommand(
868 device: DeviceInfo,

Callers 1

handleScrollCommandFunction · 0.85

Calls 1

parseScrollDirectionFunction · 0.90

Tested by

no test coverage detected