Merge branch '315-fix-arrow-bottom' into 'dev'

Fix for scroll arrow bottom visibility

For issue #315

See merge request keanuapp/keanuapp-weblite!92
This commit is contained in:
N Pex 2022-05-23 14:24:44 +00:00
commit 40073a7f66

View file

@ -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();
},