(el: HTMLElement)
| 164 | "pre, textarea, [data-sh-scroll], .sh-nested-scroll, .sh-thinking-body"; |
| 165 | |
| 166 | function isVerticallyScrollable(el: HTMLElement): boolean { |
| 167 | if (el.scrollHeight <= el.clientHeight + 1) { |
| 168 | return false; |
| 169 | } |
| 170 | const style = getComputedStyle(el); |
| 171 | return ( |
| 172 | style.overflowY === "auto" || |
| 173 | style.overflowY === "scroll" || |
| 174 | style.overflow === "auto" || |
| 175 | style.overflow === "scroll" |
| 176 | ); |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * Follow the stream inside capped overflow regions (e.g. `<pre>` code blocks). |
no outgoing calls
no test coverage detected