( el: HTMLElement, factor = DEFAULT_STREAM_SCROLL_EASE, )
| 77 | |
| 78 | /** Ease a scroll container toward its bottom edge */ |
| 79 | export function easeScrollToBottom( |
| 80 | el: HTMLElement, |
| 81 | factor = DEFAULT_STREAM_SCROLL_EASE, |
| 82 | ): boolean { |
| 83 | const target = el.scrollHeight - el.clientHeight; |
| 84 | return easeScrollTop(el, target, factor); |
| 85 | } |
| 86 | |
| 87 | /** True when the reader is within thresholdPx of the bottom edge. */ |
| 88 | export function isNearScrollBottom( |
no test coverage detected