Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
gcassie
· 2y ago · 0 comments
I actually used this pattern as well and I really like it. I store another property called `mark_idx`. When `cursor_idx` and `mark_idx` are the same then it's just a cursor. When they differ, the range between them is the selection.
Comments
No comments yet.
Better HN