roundy
roundy copied to clipboard
reset when reach 100% on a 360 slider
Hi, i'm new to the front-end and i'm using this to create a 360 slider. I'm wondering if there's a way to reset the slider when reached the 100. basically i want to create an infinite slider
hey
so if I understand you correctly slider should behave without any stop when going from 330 towards 360 or going from 30 towards 0? because I intentionally put a check to stop user because it's not intuitive to just jump to 0 if you're on 330.
basically you can try playing with these lines: https://github.com/themre/roundy/blob/master/src/index.js#L165
you just remove - 20
to see how it works. if it works as intended, we can put another prop to not have this tracking angle when going from 0 to 360.