IvanAdmaers/react-roulette-pro

Spinning Speed is different

lxnnydev opened this issue · 12 comments

Hi! Depending on how many items are in the component, the spinning times are different. Is there any way to fix that?

Can you give me an example? its kind of confusing tbh

<RoulettePro spinningTime={20} />

but that doesnt change the speed

To specify want I want. I want multiple roulettes with a different amount of items but with the same spinning speed and time.

I understood what you want. I think it may be implemented by using the spinningTime prop. But now it seems like this prop works incorrect. I need to check why does this happen and then I'll let you know.

UPD: the spinningTime prop works well. I just forgot to save the file

I set the spinningTime prop and two roulettes on the page stopping at the same time - example. Is this what are you looking for?

Nope, The top one is way slower than the bottom one. I want both being the same speed. Thank you for your current help though

I think it's not possible to have multiple roulettes with a different amount of items but with the same spinning speed and time. To implement both of your conditions you gotta set the same prizes length to both of your roulettes.

Hmm, Sad, Thank you for your help though.

No problem. Feel free to open a new issue if you have any questions. Have a good one.