Only scroll enough to reveal the next channel if it isn't visible
Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
47fc03ab98
commit
a40f04b71f
2 changed files with 32 additions and 6 deletions
|
@ -584,10 +584,7 @@ impl CollabPanel {
|
|||
}
|
||||
|
||||
fn scroll_to_item(&mut self, ix: usize) {
|
||||
self.list_state.scroll_to(ListOffset {
|
||||
item_ix: ix,
|
||||
offset_in_item: px(0.),
|
||||
})
|
||||
self.list_state.scroll_to_reveal_item(ix)
|
||||
}
|
||||
|
||||
fn update_entries(&mut self, select_same_item: bool, cx: &mut ViewContext<Self>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue