Can we stop the wheel at a segment where we want
waleedpl opened this issue · 2 comments
waleedpl commented
Actually i am using this wheel for a lottery event
so i want to stop the wheel on a specific segment where i want is that possible ?
zarocknz commented
Yes there is an entire tutorial on that. Please read http://dougtesting.net/winwheel/docs/tut14_setting_the_prize
EliezerB123 commented
To be more clear, a function for this already exists. (The documentation is somewhat unclear.)
The correct method for stopping on prize #3 is this:
var stopAt = myWheel.getRandomForSegment(3);
myWheel.animation.stopAngle = stopAt;
myWheel.startAnimation();