Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: increase "load more messages" margin #4122

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
- message input getting unexpectedly re-focused, and not re-focused after some actions if the draft text is not empty #4136
- fix: exit search when clicking on profile when the selected profile is already the selected account #4166
- "Encryption Info" dialog showing all info in one line #4162
- losing scrolling "momentum" while scrolling the messages list fast #4122

<a id="1_46_8"></a>

Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/message/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default function MessageList({ accountId, chat, refComposer }: Props) {
}

// Remember that `distanceToTop` and `distanceToBottom` can both be true.
if (distanceToTop < 200) {
if (distanceToTop < 800) {
// Prevent the scroll position from "sticking" to the top,
// which would disable scroll anchoring, and would make
// the scroll position continuosuly jump to the very top and we'd
Expand All @@ -260,7 +260,7 @@ export default function MessageList({ accountId, chat, refComposer }: Props) {
log.debug('onScroll: Scrolled to top, fetching more messages!')
setTimeout(() => fetchMoreTop(), 0)
}
if (distanceToBottom < 200) {
if (distanceToBottom < 800) {
log.debug('onScroll: Scrolled to bottom, fetching more messages!')
setTimeout(() => fetchMoreBottom(), 0)
}
Expand Down
Loading