Improve search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-22 12:12:09 +02:00
parent 444e0d6a0c
commit baac00f678
36 changed files with 1343 additions and 1013 deletions

View File

@@ -57,13 +57,11 @@ const imageOpacity = computed(() =>
);
onMounted(() => {
console.debug("on lazy image mounted");
observer.value = new IntersectionObserver((entries) => {
isIntersecting.value = entries[0].isIntersecting;
});
if (wrapper.value) {
console.debug("starting observing");
observer.value.observe(wrapper.value);
}
});