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

make sure newly created event for touch has the originalEvent property #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashanbrown
Copy link

I've been using jquery slider with touchpunch, but the absence of the originalEvent property (specifically, the absence of originalEvent.target) makes it impossible to know which DOM element was originally clicked. This is useful if you want to ensure that you can drag the slider only by a handle. This change uses the jquery event constructor to build an event with the originalEvent property set to the original touch event.

Andrew

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