( target: ScrollTarget, options: ScrollCommandOptions, completedPasses: number, interactionResult: Record<string, unknown>, )
| 813 | } |
| 814 | |
| 815 | function buildDispatchedScrollResult( |
| 816 | target: ScrollTarget, |
| 817 | options: ScrollCommandOptions, |
| 818 | completedPasses: number, |
| 819 | interactionResult: Record<string, unknown>, |
| 820 | ): Record<string, unknown> { |
| 821 | const durationMs = honoredScrollDurationMs(interactionResult); |
| 822 | return { |
| 823 | direction: target.direction, |
| 824 | ...(target.edge ? { edge: target.edge, passes: completedPasses } : {}), |
| 825 | ...(options.amount !== undefined ? { amount: options.amount } : {}), |
| 826 | ...(options.pixels !== undefined ? { pixels: options.pixels } : {}), |
| 827 | ...(durationMs !== undefined ? { durationMs } : {}), |
| 828 | ...interactionResult, |
| 829 | }; |
| 830 | } |
| 831 | |
| 832 | async function captureVerifiedScrollEdgeState( |
| 833 | interactor: Interactor, |
no test coverage detected