Skip to content

Commit

Permalink
Fixed chat auto scroll to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Aug 26, 2020
1 parent bd9c4d5 commit 14baaa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion svelte/src/GameDetail.svelte
Expand Up @@ -178,6 +178,8 @@
elm.appendChild(textElm)
chat_messages.appendChild(elm);
chat_messages.scrollTo(0, chat_messages.scrollHeight);
}
});
</script>
Expand Down Expand Up @@ -229,7 +231,6 @@
}
.game-wrapper .chat .messages {
display: flex;
flex: 1;
padding: 16px;
justify-content: flex-end;
Expand Down

0 comments on commit 14baaa7

Please sign in to comment.