-
Notifications
You must be signed in to change notification settings - Fork 144
Fix: Scroll towards top #547
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
Conversation
c844f2c to
b9cdc46
Compare
| // sets the scroll position to the top of the new messages | ||
| element.scrollTop = scrollTop - (scrollHeight - element.scrollHeight); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is what I wanted to do 👍
| hasMore: hasMorePrev, | ||
| hasNext: hasMoreNext, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you leave a comment here?
like
// TODO: rename these two props, hasMore & hasNext
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, let's do not that for now, I can make a fix after release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix scroll in MessageList
Debounce scroll events