roundy icon indicating copy to clipboard operation
roundy copied to clipboard

reset when reach 100% on a 360 slider

Open arch-stefanozanetti opened this issue 5 years ago • 1 comments

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

arch-stefanozanetti avatar Jan 16 '20 16:01 arch-stefanozanetti

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.

themre avatar Jan 19 '20 07:01 themre