-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Conversation
@@ -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) { |
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.
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)
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.
Yeah... odd.
group-income Run #3580
Run Properties:
|
Project |
group-income
|
Branch Review |
sebin/task/#2466-chat-scroll-issue
|
Run status |
Passed #3580
|
Run duration | 11m 05s |
Commit |
a41f95f569 ℹ️: Merge 5ce152993117aa834169c8ff8adf3511642f8c41 into 2223594d1a9f75dc01abc6c0a4ba...
|
Committer | Sebin Song |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
10
|
Skipped |
0
|
Passing |
111
|
View all changes introduced in this branch ↗︎ |
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.
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) { |
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.
Yeah... odd.
closes #2466