From bf9743a375334fed633a36bcd412a4bd1ae0f5f9 Mon Sep 17 00:00:00 2001 From: 10G Meow <10gmeow@gmail.com> Date: Mon, 23 May 2022 14:24:43 +0000 Subject: [PATCH] Fix for scroll arrow bottom visibility --- src/components/Chat.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Chat.vue b/src/components/Chat.vue index af7f2f4..9b45a50 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -1068,9 +1068,8 @@ export default { } else if (container.scrollHeight - container.scrollTop.toFixed(0) - container.clientHeight <= bufferHeight) { this.handleScrolledToBottom(false); } - this.showScrollToEnd = - container.scrollHeight - container.scrollTop.toFixed(0) > container.clientHeight || - (this.timelineWindow && this.timelineWindow.canPaginate(EventTimeline.FORWARDS)); + + this.showScrollToEnd = container.scrollHeight === container.clientHeight ? false : container.scrollHeight - container.scrollTop.toFixed(0) > container.clientHeight || (this.timelineWindow && this.timelineWindow.canPaginate(EventTimeline.FORWARDS)); this.restartRRTimer(); },