Skip to content

Commit

Permalink
fx: scroll to top (#24)
Browse files Browse the repository at this point in the history
* up: image, vue, npm

* fx: rotor unmount hook
  • Loading branch information
whatphilipcodes authored Apr 26, 2024
1 parent db9e08d commit 6e19b2c
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 223 deletions.
5 changes: 5 additions & 0 deletions components/Rotor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ const blocker = new BlockExceptionHandler('rotor-component')
let pendingAlign: NodeJS.Timeout | null = null
//
onUnmounted(() => {
exit()
})
//
function enter(alignDelay = 800) {
blocker.attachEvent('wheel', window)
Expand Down
Loading

0 comments on commit 6e19b2c

Please sign in to comment.