Skip to content

Conversation

@sravan-s
Copy link
Contributor

@sravan-s sravan-s commented May 19, 2023

Fix scroll in MessageList
Debounce scroll events

@sravan-s sravan-s requested a review from HoonBaek May 19, 2023 07:29
@sravan-s sravan-s self-assigned this May 19, 2023
@HoonBaek HoonBaek force-pushed the hot-fix/MessageList-scroll branch from c844f2c to b9cdc46 Compare May 19, 2023 07:53
Comment on lines +54 to +55
// sets the scroll position to the top of the new messages
element.scrollTop = scrollTop - (scrollHeight - element.scrollHeight);
Copy link
Contributor

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 👍

Comment on lines 132 to +133
hasMore: hasMorePrev,
hasNext: hasMoreNext,
Copy link
Contributor

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

Copy link
Contributor

@HoonBaek HoonBaek May 19, 2023

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

Copy link
Contributor

@HoonBaek HoonBaek left a comment

Choose a reason for hiding this comment

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

LGTM

@sravan-s sravan-s merged commit a4c9567 into main May 19, 2023
@sravan-s sravan-s deleted the hot-fix/MessageList-scroll branch May 19, 2023 12:55
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.

3 participants