How to get X / Y touch position in iPhone Safari?

I had a problem figuring out how to get the X / Y coordinates where the finger touches the web application on iPhone Safari.

I have a function subscribed to the events "touchstart", "touchmove" and "touchhend", and I tried pageX / pageY on this event, but it seems to get nothing but 'undefined' or 0.

I also think that my keyword search is not quite right, because I did not find clear documentation on how to do this anywhere.

+3
source share
2 answers

The documentation you are looking for is here:

- Apple: Multi-Touch

+9

client.Y and client.X

X Y.

0

Source: https://habr.com/ru/post/1720985/


All Articles