@@ -172,11 +172,14 @@ const noticeHint = computed(() => getScrollGateHint(canConfirmNotice.value))
let noticeResizeObserver
const updateNoticeReadState = () => {
- if (!noticeScrollRef.value) {
+ const scroll = noticeScrollRef.value
+ const content = noticeContentRef.value
+ if (!scroll || !content || scroll.clientHeight <= 0) {
canConfirmNotice.value = false
return
}
- canConfirmNotice.value = isScrollAtBottom(noticeScrollRef.value)
+ const contentFits = content.scrollHeight <= scroll.clientHeight + 1
+ canConfirmNotice.value = contentFits || isScrollAtBottom(scroll)
}
const disconnectNoticeObserver = () => {