Skip to content

Commit

Permalink
fix: use dialog scroll lock
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Feb 7, 2024
1 parent 5b1d5c6 commit c0b7c82
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/LeakyPaywall.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { sendTrack } from '~/lib/tracking'
const scrollLock = useScrollLock(window)
const { y } = useWindowScroll()
const { height } = useWindowSize()
const show = ref(false)
Expand Down Expand Up @@ -100,7 +99,6 @@ useEventListener(window, 'wheel', (event) => {
})
}
show.value = false
scrollLock.value = false
}
})
Expand All @@ -123,7 +121,6 @@ whenever(
return
}
scrollLock.value = true
show.value = true
},
{ immediate: true },
Expand Down

0 comments on commit c0b7c82

Please sign in to comment.