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

Function assertScrollCommandInputs

src/core/dispatch-interactions.ts:773–781  ·  view source on GitHub ↗
(
  amount: number | undefined,
  pixels: number | undefined,
  durationMs: number | undefined,
)

Source from the content-addressed store, hash-verified

771}
772
773function assertScrollCommandInputs(
774 amount: number | undefined,
775 pixels: number | undefined,
776 durationMs: number | undefined,
777): void {
778 assertScrollAmountInput(amount);
779 normalizeScrollDurationMs(durationMs);
780 assertExclusiveScrollDistanceInputs({ amount, pixels });
781}
782
783function assertScrollAmountInput(amount: number | undefined): void {
784 if (amount !== undefined && !Number.isFinite(amount)) {

Callers 1

handleScrollCommandFunction · 0.85

Tested by

no test coverage detected