Skip to content

Commit

Permalink
Merge pull request #51 from OVINC-CN/fix_user_scroll
Browse files Browse the repository at this point in the history
fix(scroll): set user scroll to false after chat finished
  • Loading branch information
OrenZhang authored Dec 30, 2024
2 parents 2c1965c + bf2cc43 commit 2232603
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ChatInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ const initWebSocket = () => {
};
webSocket.value.onclose = () => {
emits('setChatLoading', false);
emits('toggleUserBehavior', false);
};
return new Promise((resolve, reject) => {
webSocket.value.onopen = (e) => {
Expand Down

0 comments on commit 2232603

Please sign in to comment.