I would like to set the hit area for an image, for example a circle created with createImage and borderRadius:50 When you tap out of the circle it still calling the click event, because the hit area still a rectangle
1 Answer
Accepted Answer
See my answer to a very similar question. Use the x and y properties of the click event and do the math to determine if it's inside the circle. If the tap is not inside the circle, ignore the event.
Your Answer
This question has been locked and cannot accept new answers.