Android-CircleMenu icon indicating copy to clipboard operation
Android-CircleMenu copied to clipboard

rotation direction bug

Open BongJaeChoi opened this issue 7 years ago • 3 comments

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.

video.zip

BongJaeChoi avatar Dec 15 '17 06:12 BongJaeChoi

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?

szugyi avatar Dec 15 '17 07:12 szugyi

@szugi i think It is likely that we will branch off the gesture action based on the view's center point.

BongJaeChoi avatar Dec 15 '17 10:12 BongJaeChoi

The way to distinguish is to get the intermediate coordinates when fling and divide by the coordinates of the center point of the view

BongJaeChoi avatar Dec 15 '17 10:12 BongJaeChoi