You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ClientX and ClientY click event values are not reported correctly on device browsers e.g. iOS6/Android, but works correctly on desktop browsers.
Please see demonstration http://plnkr.co/edit/9mSIhXrSbehfkirx359U?p=preview and test on mobile Safari/Chrome. Clicking inside the element returns incorrect values while clicking outside returns correct results.
This most likely covers the problem raised in issue #4428.
The text was updated successfully, but these errors were encountered:
Right, we are using the touchstart event and forwarding it to the click handlers. However, touch events don't have clientX and clientY properties on the event but on the modified touches that are stored on the event.
Actually, if you have two fingers down, you may want to have the coordinates of both of them in your event handler.
So keeping this under event.changedTouches makes sense!
ClientX and ClientY click event values are not reported correctly on device browsers e.g. iOS6/Android, but works correctly on desktop browsers.
Please see demonstration http://plnkr.co/edit/9mSIhXrSbehfkirx359U?p=preview and test on mobile Safari/Chrome. Clicking inside the element returns incorrect values while clicking outside returns correct results.
This most likely covers the problem raised in issue #4428.
The text was updated successfully, but these errors were encountered: