-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router links triggers during slides draggin #46
Comments
I had the same issue. Didn't solved it on a very clean way but you can use the drag event to add a class when dragging. Then simply put pointer-events: none on that class.
the class :
|
The best way that i find is like this |
@mcake8 |
i have same problem |
Here is a more generic version of @eertmanhidde 's approach:
That works perfectly for me. You'll still need this style:
|
I have a slider with a router link inside each slide, and i can't swipe or drag slides on desktop without redirecting to another route. I guess it's because router links click can't be prevented.
The text was updated successfully, but these errors were encountered: