Show a border when scrolled in chat

This commit is contained in:
Conrad Irwin 2024-01-13 22:19:21 -07:00
parent c810af40d3
commit 818cbb2415
2 changed files with 24 additions and 15 deletions

View file

@ -43,6 +43,7 @@ pub enum ListAlignment {
pub struct ListScrollEvent {
pub visible_range: Range<usize>,
pub count: usize,
pub is_scrolled: bool,
}
#[derive(Clone)]
@ -253,6 +254,7 @@ impl StateInner {
&ListScrollEvent {
visible_range,
count: self.items.summary().count,
is_scrolled: self.logical_scroll_top.is_some(),
},
cx,
);