diff --git a/damus/Views/EventDetailView.swift b/damus/Views/EventDetailView.swift index 8c764e21..1937ba3f 100644 --- a/damus/Views/EventDetailView.swift +++ b/damus/Views/EventDetailView.swift @@ -21,7 +21,7 @@ struct EventDetailView_Previews: PreviewProvider { } } -func scroll_to_event(scroller: ScrollViewProxy, id: String, delay: Double, animate: Bool, anchor: UnitPoint = .top) { +func scroll_to_event(scroller: ScrollViewProxy, id: String, delay: Double, animate: Bool, anchor: UnitPoint = .bottom) { DispatchQueue.main.asyncAfter(deadline: .now() + delay) { if animate { withAnimation { diff --git a/damus/Views/ThreadView.swift b/damus/Views/ThreadView.swift index 451f6239..ca2c830b 100644 --- a/damus/Views/ThreadView.swift +++ b/damus/Views/ThreadView.swift @@ -88,7 +88,8 @@ struct ThreadView: View { }.navigationBarTitle(NSLocalizedString("Thread", comment: "Navigation bar title for note thread.")) .onAppear { thread.subscribe() - scroll_to_event(scroller: reader, id: self.thread.event.id, delay: 0.0, animate: false) + let anchor: UnitPoint = self.thread.event.known_kind == .longform ? .top : .bottom + scroll_to_event(scroller: reader, id: self.thread.event.id, delay: 0.0, animate: false, anchor: anchor) } .onDisappear { thread.unsubscribe()