mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
a7c4fc410a
It was difficult to handle the pressed angle on the arc when it crossed the 360 degree boundery. The solution is to handle the angle relative to the bg_start_angle. This way no angle can be larger than 360. The other issue was the case when a smaller than min. or larger than max. angle was pressed. It is handled by introducing 'min_close' flag which stores which end is closer on the last valid press and prefer this end in uncleary situation.