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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Sep 10, 2024

So that it's harder to bump the top / the bottom while scrolling
really fast, and lose momentum.

TODO:

remove non-functional `ev.preventDefault()`

It was introduced in 3473014,
where it apparently used to disable scroll "sticking to top".

Nowadays this "sticking" doesn't tend to manifest itself because
we now have a 200px margin, unlike when
`preventDefault` was introduced.
`appendMessagePageTop` -> `appendMessagesTop`
`appendMessagePageBottom` -> `appendMessagesBottom`

We used to use "pages" for messages but now it's not the case.
So that it's harder to bump the top / bottom while scrolling
really fast, and lose momentum.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant