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

refactor: add more comments about scrolling, simplify the code #4121

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Sep 10, 2024

It was very hard to work on #3763 and #3753 because of how much scrolling-related code we have, so I simplified it and added some comments before I forget.

Copy link
Contributor

@nicodh nicodh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are really helpful!

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.
@WofWca WofWca force-pushed the wofwca/simpler-scrolling branch from 68b8771 to 8fbf83d Compare September 30, 2024 08:51
@WofWca WofWca merged commit c3d13df into main Sep 30, 2024
2 of 7 checks passed
@WofWca WofWca deleted the wofwca/simpler-scrolling branch September 30, 2024 08:51
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.

2 participants