Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix moving OL items on Safari mobile #90

Closed
noyainrain opened this issue Nov 15, 2019 · 0 comments
Closed

Fix moving OL items on Safari mobile #90

noyainrain opened this issue Nov 15, 2019 · 0 comments
Assignees
Labels
bug.critical Bug that disables a substantial feature, use case or the entire app bug

Comments

@noyainrain
Copy link
Owner

Moving an OL item on mobile Safari 13.1+ fails with the following error:

[E 191114 14:57:08 server:766] Client error occurred
    TypeError: undefined is not an object (evaluating 'event.targetTouches[0].clientX')
    Stack:
    handleEvent@https://listling.org/static/node_modules/@noyainrain/micro/index.js?v=65d5e9efd876ad9253557d3317fdea30:889:47
    Device info: Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Mobile/15E148 Safari/604.1

The cause is Safari producing faulty touch events if an element has been detached from the DOM, in this case with empty targetTouches.

@noyainrain noyainrain added bug bug.critical Bug that disables a substantial feature, use case or the entire app labels Nov 15, 2019
@noyainrain noyainrain self-assigned this Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug.critical Bug that disables a substantial feature, use case or the entire app bug
Projects
None yet
Development

No branches or pull requests

1 participant