diff --git a/resources/[system]/chat/html/App.js b/resources/[system]/chat/html/App.js index 3fcd3a0..7cb1fbb 100644 --- a/resources/[system]/chat/html/App.js +++ b/resources/[system]/chat/html/App.js @@ -105,11 +105,11 @@ window.APP = { e.preventDefault(); this.moveOldMessageIndex(e.which === 38); } else if (e.which == 33) { - const buf = $(this.$refs.messages); - buf.scrollTop(buf.scrollTop() - 50); + var buf = document.getElementsByClassName('chat-messages')[0]; + buf.scrollTop = buf.scrollTop - 100; } else if (e.which == 34) { - const buf = $(this.$refs.messages); - buf.scrollTop(buf.scrollTop() + 50); + var buf = document.getElementsByClassName('chat-messages')[0]; + buf.scrollTop = buf.scrollTop + 100; } }, moveOldMessageIndex(up) {