commit ad6a1962bbddc17762c4a73dbe25398c7d79f861
parent 828e4177267bc2b7e7fcb9491b8f1907fcb0c6d4
Author: William Casarin <jb55@jb55.com>
Date: Tue, 11 Jul 2023 12:55:54 -0700
Scroll to top of event instead of bottom
This is pretty important for longform events
Changelog-Changed: Start at top when reading longform events
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 = .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 {