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

#2466 - Chat auto-scroll issue #2468

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Conversation

SebinSong
Copy link
Collaborator

closes #2466

@SebinSong SebinSong self-assigned this Dec 17, 2024
@@ -984,8 +984,7 @@ export default ({
if (addedOrDeleted === 'ADDED' && this.messages.length) {
const isScrollable = this.$refs.conversation &&
this.$refs.conversation.scrollHeight !== this.$refs.conversation.clientHeight
const fromOurselves = this.isMsgSender(this.messages[this.messages.length - 1].from)
if (!fromOurselves && isScrollable) {
if (isScrollable) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The logic here that does not auto-scroll if the message sender is the user himself/herself caused of the issue so I just removed it. (I guess the author missed the rare case where a user uses two browsers)

Copy link
Member

Choose a reason for hiding this comment

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

Yeah... odd.

Copy link

cypress bot commented Dec 17, 2024

group-income    Run #3580

Run Properties:  status check passed Passed #3580  •  git commit a41f95f569 ℹ️: Merge 5ce152993117aa834169c8ff8adf3511642f8c41 into 2223594d1a9f75dc01abc6c0a4ba...
Project group-income
Branch Review sebin/task/#2466-chat-scroll-issue
Run status status check passed Passed #3580
Run duration 11m 05s
Commit git commit a41f95f569 ℹ️: Merge 5ce152993117aa834169c8ff8adf3511642f8c41 into 2223594d1a9f75dc01abc6c0a4ba...
Committer Sebin Song
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 10
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 111
View all changes introduced in this branch ↗︎

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

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

Nicely done!

@@ -984,8 +984,7 @@ export default ({
if (addedOrDeleted === 'ADDED' && this.messages.length) {
const isScrollable = this.$refs.conversation &&
this.$refs.conversation.scrollHeight !== this.$refs.conversation.clientHeight
const fromOurselves = this.isMsgSender(this.messages[this.messages.length - 1].from)
if (!fromOurselves && isScrollable) {
if (isScrollable) {
Copy link
Member

Choose a reason for hiding this comment

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

Yeah... odd.

@taoeffect taoeffect merged commit df255f8 into master Dec 17, 2024
4 checks passed
@taoeffect taoeffect deleted the sebin/task/#2466-chat-scroll-issue branch December 17, 2024 19: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.

Chat doesn't scroll down when it should
2 participants