Android-CircleMenu
Android-CircleMenu copied to clipboard
rotation direction bug
When filing from 1 quadrant to 3 slopes, the direction of rotation is reversed. To be more specific, Fling from upper right to lower left direction reverses direction. Please check the attached video.
Thanks for the report @BongJaeChoi!
These opposite quadrant flings are quite tricky. It is not easy to determine the direction in these cases. For quadrant 1-3 the rule is, if the fling is bigger in the vertical direction than in the horizontal, then it is a clockwise fling. I think this is the correct behaviour in this case.
Can you suggest a fix?
@szugi i think It is likely that we will branch off the gesture action based on the view's center point.
The way to distinguish is to get the intermediate coordinates when fling and divide by the coordinates of the center point of the view