(input: string)
| 856 | } |
| 857 | |
| 858 | function 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 | |
| 867 | export async function handlePinchCommand( |
| 868 | device: DeviceInfo, |
no test coverage detected