Skip to content

Commit

Permalink
change: do not scroll to button when receive a new message
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Apr 21, 2024
1 parent 242b140 commit 64a36ca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/client/pages/messaging/messaging-room.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,7 @@ const Component = defineComponent({
});
}
if (_isBottom) {
// Scroll to bottom
this.$nextTick(() => {
this.scrollToBottom();
});
} else if (message.userId != this.$i.id) {
if (message.userId != this.$i.id) {
// Notify
this.notifyNewMessage();
}
Expand Down

0 comments on commit 64a36ca

Please sign in to comment.