I have a circle drawn in canvas, its suppose to be a seekbar for a music player, which goes from top in clockwise direction.
<div id="wrapper"><canvas id="canvas" width="200" height="200"></canvas></div>
Is it possible to detect a click on the green rectangle (anywhere BUT in the middle of the circle where pause / play button will be drawn). So I need a percentage (1-100) for example, user clicks middle right and its 0.25%, or 1/4, and so on.
If its clicked in the middle of the circle than I need to run pause / play function, but it its clicked anywhere else I need to get a percentage.
I am using jquery.