diff --git a/src/components/table.ts b/src/components/table.ts index e2a0eeb..430a73a 100644 --- a/src/components/table.ts +++ b/src/components/table.ts @@ -187,7 +187,7 @@ export class Table extends Component { break; } - selectedRow.value = clamp(selectedRow.peek(), 0, lastDataRow - 1); + selectedRow.value = clamp(selectedRow.peek(), 0, lastDataRow); offsetRow.value = clamp(selectedRow.peek() - ~~((height - 4) / 2), 0, lastDataRow - height + 5); });