Update MkStreamingNotesTimeline.vue
This commit is contained in:
parent
33541cc00d
commit
9826a089dd
|
@ -117,7 +117,8 @@ function onScrollContainerScroll() {
|
||||||
const rootEl = useTemplateRef('rootEl');
|
const rootEl = useTemplateRef('rootEl');
|
||||||
watch(rootEl, (el) => {
|
watch(rootEl, (el) => {
|
||||||
if (el && scrollContainer == null) {
|
if (el && scrollContainer == null) {
|
||||||
scrollContainer = getScrollContainer(el)!;
|
scrollContainer = getScrollContainer(el);
|
||||||
|
if (scrollContainer == null) return;
|
||||||
scrollContainer.addEventListener('scroll', onScrollContainerScroll, { passive: true }); // ほんとはscrollendにしたいけどiosが非対応
|
scrollContainer.addEventListener('scroll', onScrollContainerScroll, { passive: true }); // ほんとはscrollendにしたいけどiosが非対応
|
||||||
}
|
}
|
||||||
}, { immediate: true });
|
}, { immediate: true });
|
||||||
|
|
Loading…
Reference in New Issue