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

Get Control Position on Mobile #118

Closed
ghost opened this issue Dec 15, 2015 · 1 comment
Closed

Get Control Position on Mobile #118

ghost opened this issue Dec 15, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 15, 2015

Not really a major issue if you're just dragging elements and not recording the positions anywhere... but we were having trouble returning the position of a dragged element on mobile devices and traced it back to getControlPosition()

We fixed this by changing:
var position = e.targetTouches && e.targetTouches[0] || e;
to
var position = e.changedTouches && e.changedTouches[0] || e;

targetTouches was returning empty for us in iOS and Android.

@STRML
Copy link
Collaborator

STRML commented May 19, 2016

Fixed in 2.0.2.

@STRML STRML closed this as completed May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant