Start work on subscribing to model from ChatPanel

This commit is contained in:
Max Brunsfeld
2021-08-23 17:21:06 -07:00
parent 6df80d94ad
commit baded7d416
4 changed files with 29 additions and 28 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ impl StateInner {
let start_ix = cursor.sum_start().0;
cursor.seek(&Height(self.scroll_top + height), Bias::Left, &());
let end_ix = cursor.sum_start().0;
start_ix..end_ix + 1
start_ix..self.elements.len().min(end_ix + 1)
}
fn scroll(