Looking to print the x/y position of the pointer / mouse after a click. Any ideas on how to achieve this?
pass the event in your click function and then print event.offsetX i think
LOL didn't change the one below to "y", but yeah.
To George Kedenburg III's point, there's a few different event types for coordinates. https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
Such as screen.x, client.x, page.x, etc. (depends if you're looking to make it mobile-compatible).
I have a fix for this. I'll post up my position class in a few min.
This may be of help... let me know if this could be simplified at all. :D
Does this help you guys out?