feat: add scrollbar and fix selection on scroll

This commit is contained in:
Brooklyn Nicholson
2026-04-14 14:34:33 -05:00
parent 9804aa7443
commit 52c11d172a
10 changed files with 397 additions and 126 deletions

View File

@@ -339,6 +339,7 @@ export function TextInput({
if (!focus) {
return
}
const next = offsetFromPosition(display, e.localRow ?? 0, e.localCol ?? 0, columns)
setCur(next)
curRef.current = next