Update MkStreamingNotesTimeline.vue

This commit is contained in:
syuilo 2025-05-06 20:29:46 +09:00
parent 33541cc00d
commit 9826a089dd
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ function onScrollContainerScroll() {
const rootEl = useTemplateRef('rootEl');
watch(rootEl, (el) => {
if (el && scrollContainer == null) {
scrollContainer = getScrollContainer(el)!;
scrollContainer = getScrollContainer(el);
if (scrollContainer == null) return;
scrollContainer.addEventListener('scroll', onScrollContainerScroll, { passive: true }); // scrollendios
}
}, { immediate: true });