How do I handle an event when a particular point ( x and y co-ordinates ) on the page is tapped?

I want to run some code when a user clicks on a particular point on the page, such as a point with co-ordinates (5,18) or something. How can I achieve this in ionic ?

I don’t know why you need this, but for a start you can try handling the click/tap events of the ion-content of the page and pass the $event object to the handler and you’ll have what you want.

Yup, thats exactly what I did. Thanks!

1 Like