Skip to content

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

Open
ashanbrown wants to merge 1 commit intofurf:masterfrom
ashanbrown:original-event
Open

make sure newly created event for touch has the originalEvent property#156
ashanbrown wants to merge 1 commit intofurf:masterfrom
ashanbrown:original-event

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