explorer-app/layouts/detail.vue
Daniel Klein 3b553f551d chore(eslint): update eslint rules
fix(lint): resolve lint errors
2024-09-02 15:13:43 +02:00

23 lines
375 B
Vue

<script lang="ts" setup>
const { showBar } = storeToRefs(useNavigaiton())
const swipeEl = ref()
const { y } = useWindowScroll()
watch(y, (newY, oldY) => {
if (newY > oldY && newY > 32)
showBar.value = false
else
showBar.value = true
})
</script>
<template>
<div
ref="swipeEl"
h-full
w-full
>
<Navigation />
<slot />
</div>
</template>