diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-17 14:11:55 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-17 14:11:55 -0700 |
| commit | 8da18773ef50f0111dda8e9b4cdcff2996326b85 (patch) | |
| tree | 031c384a5bd9b2d3f7b7d4086d34ac8e0503c183 /Hotline | |
| parent | 386743e8b1aab8fe034bb650c45aca3a16f047b7 (diff) | |
Attempt to fix chat scroll issue in public chat.
Diffstat (limited to 'Hotline')
| -rw-r--r-- | Hotline/macOS/ChatView.swift | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Hotline/macOS/ChatView.swift b/Hotline/macOS/ChatView.swift index 62bab69..b7b92d6 100644 --- a/Hotline/macOS/ChatView.swift +++ b/Hotline/macOS/ChatView.swift @@ -119,16 +119,15 @@ struct ChatView: View { .padding(EdgeInsets(top: 2, leading: 0, bottom: 2, trailing: 0)) } } - EmptyView().id(bottomID) } .padding() + + VStack(spacing: 0) {}.id(bottomID) } .frame(maxWidth: .infinity, maxHeight: .infinity) .defaultScrollAnchor(.bottom) .onChange(of: model.chat.count) { - withAnimation(.easeOut(duration: 0.15).delay(0.25)) { - reader.scrollTo(bottomID, anchor: .bottom) - } + reader.scrollTo(bottomID, anchor: .bottom) model.markPublicChatAsRead() } .onAppear { |