zarocknz/javascript-winwheel

Different starting angle because of the drag animation

StefanGhiban opened this issue · 1 comments

Hi! Is there a way I could somehow change, before a spin, the starting point? The problem that I am encountering is the following: I am using a dragging algorithm that rotates the wheel before the spin. Because of the rotation in degrees applied to the styling of the wheel, after the spin animation, the prize is not the one the pointer is falling on, it is offset by the number of degrees I have rotated the wheel before the actual spin. I hope it makes sense. Great package btw.

Solved by changing the pointer angle and rotation angle.