We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2bf28 commit 5e0490dCopy full SHA for 5e0490d
src/ChatWindow/Room/Room.vue
@@ -845,7 +845,9 @@ export default {
845
scrollToBottom() {
846
setTimeout(() => {
847
const element = this.$refs.scrollContainer
848
+ element.classList.add('vac-scroll-smooth')
849
element.scrollTo({ top: element.scrollHeight, behavior: 'smooth' })
850
+ setTimeout(() => element.classList.remove('vac-scroll-smooth'), 0)
851
}, 50)
852
},
853
onChangeInput() {
@@ -1007,6 +1009,10 @@ export default {
1007
1009
margin-right: 1px;
1008
1010
margin-top: 60px;
1011
-webkit-overflow-scrolling: touch;
1012
+
1013
+ &.vac-scroll-smooth {
1014
+ scroll-behavior: smooth;
1015
+ }
1016
}
1017
1018
.vac-messages-container {
0 commit comments