Use top anchor for scroll to top event

Changelog-Fixed: Scroll to top of events instead of the bottom
Closes: #570
This commit is contained in:
OlegAba
2023-02-11 00:50:44 -05:00
committed by William Casarin
parent 94a67adff9
commit d547dade04
2 changed files with 4 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ struct TimelineView: View {
guard let event = events.filter(self.filter).first else {
return
}
scroll_to_event(scroller: scroller, id: event.id, delay: 0.0, animate: true)
scroll_to_event(scroller: scroller, id: event.id, delay: 0.0, animate: true, anchor: .top)
}
}
}