Show a border when scrolled in chat
This commit is contained in:
parent
c810af40d3
commit
818cbb2415
2 changed files with 24 additions and 15 deletions
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue