(s: ScrollBoxHandle, amount: number)
| 873 | // can cover and intermediate drain frames render at scrollTops with no |
| 874 | // mounted children — blank viewport. |
| 875 | export function scrollUp(s: ScrollBoxHandle, amount: number): void { |
| 876 | // Include pendingDelta: scrollBy accumulates without updating scrollTop, |
| 877 | // so getScrollTop() alone is stale within a batch of wheel events. |
| 878 | const effectiveTop = s.getScrollTop() + s.getPendingDelta(); |
| 879 | if (effectiveTop - amount <= 0) { |
| 880 | s.scrollTo(0); |
| 881 | return; |
| 882 | } |
| 883 | s.scrollBy(-amount); |
| 884 | } |
| 885 | export type ModalPagerAction = 'lineUp' | 'lineDown' | 'halfPageUp' | 'halfPageDown' | 'fullPageUp' | 'fullPageDown' | 'top' | 'bottom'; |
| 886 | |
| 887 | /** |
no outgoing calls
no test coverage detected