1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

chore: cleans up types

This commit is contained in:
Amir Raminfar
2023-05-05 10:07:29 -07:00
parent be47fdab12
commit 049ae108de
3 changed files with 125 additions and 45 deletions

View File

@@ -29,7 +29,7 @@ const root = ref<HTMLElement>();
const store = useContainerStore();
const { activeContainers } = storeToRefs(store);
const scrollElement = ref<HTMLElement | Document>((root.value?.closest("[data-scrolling]") as HTMLElement) ?? document);
const { y: scrollY } = useScroll(scrollElement, { throttle: 100 });
const { y: scrollY } = useScroll(scrollElement as Ref<HTMLElement | Document>, { throttle: 100 });
onMounted(() => {
watch(