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
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.
This question has been locked and cannot accept new answers.