From 044edcf9b2881924bd4ca1414603590bdb250519 Mon Sep 17 00:00:00 2001 From: ElectricS01 <103579308+ElectricS01@users.noreply.github.com> Date: Sat, 11 Feb 2023 17:25:05 +1100 Subject: [PATCH] Removed unused code --- .../src/views/Communications/CommunicationsChat.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/frontend/src/views/Communications/CommunicationsChat.vue b/frontend/src/views/Communications/CommunicationsChat.vue index 65251f9..5d88d1b 100644 --- a/frontend/src/views/Communications/CommunicationsChat.vue +++ b/frontend/src/views/Communications/CommunicationsChat.vue @@ -1050,21 +1050,13 @@ export default { this.edit.id = "" this.focusInput() }, - autoScroll(smooth = false) { + autoScroll() { this.$nextTick(() => { if (!this.avoidAutoScroll) { try { const lastIndex = this.messages.length - 1 const lastMessage = document.querySelector(`#message-${lastIndex}`) - if (smooth) { - lastMessage.scrollIntoView({ - behavior: "smooth", - block: "nearest", - inline: "start" - }) - } else { - lastMessage.scrollIntoView() - } + lastMessage.scrollIntoView() this.autoScrollRetry = 0 } catch (e) { console.log("Could not auto scroll, retrying...")