Skip to content

Commit

Permalink
🚧 ensure navigation arrows are hidden on start/end (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
SvSven committed Dec 21, 2022
1 parent 16473e0 commit e0c599e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/pageComponents/shared/Carousel/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ export const NavButton = ({ type }: { type: 'prev' | 'next' }) => {
swiper.on('unlock', (swipe) => {
updateConfig(swipe)
})
swiper.on('transitionStart', (swipe) => {
updateConfig(swipe)
})
swiper.on('transitionEnd', (swipe) => {
updateConfig(swipe)
})
}, [swiper])

if (type !== 'prev' && type !== 'next') return null
Expand Down

0 comments on commit e0c599e

Please sign in to comment.