Update MkStreamingNotesTimeline.vue
This commit is contained in:
parent
33541cc00d
commit
9826a089dd
|
@ -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 }); // ほんとはscrollendにしたいけどiosが非対応
|
||||
}
|
||||
}, { immediate: true });
|
||||
|
|
Loading…
Reference in New Issue