You have to calculate this yourself. You have to calculate the offset between the contact point and the center point, Then use trigonometric functions to calculate the angle. I have written something similar before, you can use it as a reference. https://jsfiddle .net/4pn3a5vy/
This question is quite interesting. It is about mouse movement. I think it's still a matter of coordinate movement. Get the starting point coordinates and the ending point coordinates, then calculate which direction the ending point is in, and then roughly calculate whether it's clockwise or counterclockwise. If you want to make it perfect, add movement response. Time is used to judge the extent of rotation, properly
This requires you to store the location where the touchstart event is triggered, and then calculate it with the location where the touchmove event is triggered.
You have to calculate this yourself.
You have to calculate the offset between the contact point and the center point,
Then use trigonometric functions to calculate the angle.
I have written something similar before, you can use it as a reference.
https://jsfiddle .net/4pn3a5vy/
This question is quite interesting. It is about mouse movement. I think it's still a matter of coordinate movement. Get the starting point coordinates and the ending point coordinates, then calculate which direction the ending point is in, and then roughly calculate whether it's clockwise or counterclockwise. If you want to make it perfect, add movement response. Time is used to judge the extent of rotation, properly
This requires you to store the location where the touchstart event is triggered, and then calculate it with the location where the touchmove event is triggered.