Splide: Making progress bar clickable/draggable #516
Unanswered
HolyMolyCS
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Just calculate the index by client positions of the mouse and the bar element. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi community,
I've added the Splide slider to a website and have a progress bar with it. I'm struggling, however, to make the progress bar clickable/draggable.
I see on the Splide site that it can be done if you "Compute a target index by a clicked position + Move the slider by Splide#go()" but I'm struggling to figure out how this is done.
This is the current code I have used
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions