views:

267

answers:

1

I'm having a bit of a problem figuring out how to get the X/Y coordinates of where the finger is touching in a webapp on iPhone Safari.

I've got a function subscribed to the 'touchstart', 'touchmove', and 'touchend' events, and I have tried pageX/pageY on the event but can't seem to get anything other than 'undefined' or 0.

I'm also thinking my keyword searching isn't quite right because I haven't found any clear documentation on exactly how to do this, anywhere.

+5  A: 

The documentation you're looking for is here:

Apple Web Content Guide: Handling Multi-Touch Events

Breton
Thanks a lot. I have basic x/y detection going on now.
Geuis