Replies: 1 comment 2 replies
-
Just adding in an example here. I use VueUse's useSwipe composable to achieve what I'm after currently. useSwipe(viewport, {
onSwipeEnd(event, direction) {
if (direction == 'left' && !canScrollNext.value) {
openRelatedProjects()
}
}
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
When the user is on the last slide, with
loop: false
, if they try to swipe to go past the last slide, I'd ideally like to trigger some functionality. Is it possible, with the help ofcanScrollNext
to know if the user has swiped and the direction, and combine this with canScrollNext?I thought using
watchDrag
might work?If applicable, which variants of Embla Carousel are relevant to this question?
Additional information
No response
CodeSandbox example
No response
Beta Was this translation helpful? Give feedback.
All reactions