I have an image that I would like to be able to tap on and get the x and y position of the "tap" event.
In the tap event, e.pageX and e.pageY give me the absolute position on the screen. If the page has been scrolled, then the value is still relative to the viewport and not to the page.
How can I get the position of the tap event?
Also, how can I get the position of the image (or its container)?