Get the index of slides after drag, or the direction #1138
sorcamarian
started this conversation in
Ideas
Replies: 2 comments
-
|
Just found this solution Y is from YUI3 library, used as a selector |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
NOTE: My first solution works on slide version @3.6.12 but not on @4.1.4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having a menu representing each slide.
After dragging the slides, I want to update the active menu with styling.
I tried to use events
movedto get the index of slides:newIndex, prevIndex, destIndexbut the problem is that this event is fired afterdragend.Also, drag event's don't come with info about index of slides.
What I tried:
Also, if I could know the direction after
dragendI would be able to see if it was to a previous or a next slide.https://splidejs.com/guides/events
Beta Was this translation helpful? Give feedback.
All reactions