()
| 146 | const focusedRowIdx = itemRowIndex[cursor]!; |
| 147 | |
| 148 | const adjustScroll = () => { |
| 149 | if (focusedRowIdx < scroll) { |
| 150 | scroll = focusedRowIdx; |
| 151 | } else if (focusedRowIdx >= scroll + windowSize) { |
| 152 | scroll = focusedRowIdx - windowSize + 1; |
| 153 | } |
| 154 | scroll = Math.max(0, Math.min(scroll, rows.length - windowSize)); |
| 155 | }; |
| 156 | |
| 157 | adjustScroll(); |
| 158 |
no outgoing calls
no test coverage detected
searching dependent graphs…