fix(ios): reduce back-to-latest button sensitivity

This commit is contained in:
weishu
2026-09-13 11:46:10 +08:00
parent 051dbbd7da
commit 2e37419a7d
9 changed files with 308 additions and 8 deletions
@@ -56,7 +56,10 @@ struct ChatTranscriptView: View {
historyControlID: TranscriptRow.historyID,
isInspectionPresented: model.isInspectingContent,
onViewport: { viewport in
model.readingViewportChanged(followsTail: viewport.followsTail, needsOlder: viewport.needsOlder)
model.readingViewportChanged(
followsTail: viewport.followsTail, needsOlder: viewport.needsOlder,
isAwayFromBottom: viewport.isAwayFromBottom
)
},
onLayout: { version, progress in model.historyLaidOut(version: version, madeProgress: progress) },
spacingBefore: { previous, row in row.spacing(after: previous) }
@@ -65,7 +68,7 @@ struct ChatTranscriptView: View {
AnyView(rowView(row))
}
.overlay(alignment: .bottomTrailing) {
if !model.followsTail || model.hasTrimmedTail || model.isJumpingToLatest {
if model.showsJumpToLatest {
Button(action: model.jumpToLatest) {
HStack(spacing: 6) {
if model.isJumpingToLatest { ProgressView().controlSize(.small) }