From 439b8c27c81c07f062b68f2598c3cdc1a5d92611 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Fri, 14 Aug 2020 12:34:30 -0700 Subject: [PATCH] Fixes bug with has more --- assets/components/ScrollableView.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/components/ScrollableView.vue b/assets/components/ScrollableView.vue index 14985df6..cfcd3e3e 100644 --- a/assets/components/ScrollableView.vue +++ b/assets/components/ScrollableView.vue @@ -49,7 +49,12 @@ export default { if (!this.paused) { this.scrollToBottom("instant"); } else { - this.hasMore = true; + const record = e[e.length - 1]; + if ( + record.target.children[record.target.children.length - 1] == record.addedNodes[record.addedNodes.length - 1] + ) { + this.hasMore = true; + } } }); mutationObserver.observe(content, { childList: true, subtree: true });