Scroll to top of event instead of bottom
This is pretty important for longform events Changelog-Changed: Start at top when reading longform events
This commit is contained in:
@@ -21,7 +21,7 @@ struct EventDetailView_Previews: PreviewProvider {
|
||||
}
|
||||
}
|
||||
|
||||
func scroll_to_event(scroller: ScrollViewProxy, id: String, delay: Double, animate: Bool, anchor: UnitPoint = .bottom) {
|
||||
func scroll_to_event(scroller: ScrollViewProxy, id: String, delay: Double, animate: Bool, anchor: UnitPoint = .top) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + delay) {
|
||||
if animate {
|
||||
withAnimation {
|
||||
|
||||
Reference in New Issue
Block a user