Closed Pandaqi closed 5 years ago
I THINK the problem is the fact that I don't get the correct clientX and clientY from touch events. (And because I use "preventDefault()", touches don't propagate towards mouse events.)
This should give me the solution: https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX
If not, here are some more links:
Yes, fixed it. Had to get .touches[0] from the event object.
.touches[0]
I THINK the problem is the fact that I don't get the correct clientX and clientY from touch events. (And because I use "preventDefault()", touches don't propagate towards mouse events.)
This should give me the solution: https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX
If not, here are some more links: