Skip to content

mobile fixes for touchstart and pageX/Y#139

Closed
blented wants to merge 1 commit intojohnny:masterfrom
blented:blented
Closed

mobile fixes for touchstart and pageX/Y#139
blented wants to merge 1 commit intojohnny:masterfrom
blented:blented

Conversation

@blented
Copy link

@blented blented commented Nov 3, 2014

pageX / pageY weren't coming back correctly because of 2 problems:
1 - touchstart needs preventDefault() in order to allow mobile drags, otherwise scrolling just takes over
2 - need to pull pageX / pageY from the touches array on the original event

johnny pushed a commit that referenced this pull request Nov 17, 2014
@johnny
Copy link
Owner

johnny commented Nov 17, 2014

Thank you for the fix. I modified it slightly, since the preventDefault should trigger if you are not trying to drag an input field.

@johnny johnny closed this Nov 17, 2014
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

Successfully merging this pull request may close these issues.

2 participants