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

e.target is always top level element. #50

Open
ddivecs opened this issue Aug 12, 2016 · 1 comment
Open

e.target is always top level element. #50

ddivecs opened this issue Aug 12, 2016 · 1 comment

Comments

@ddivecs
Copy link

ddivecs commented Aug 12, 2016

There was a related pull request #39 that was closed with 0 discussion. Hammer handles this correctly it appears that the jquery plugin has a bug.

@ghost
Copy link

ghost commented Oct 21, 2016

This is because the jQuery plugin uses the element from the Manager instance to trigger the event. This is always the top level element, regardless of where the event originated.

Look into domEvents option for the Manager instance if you want to bubble up events and have access to the target at all.

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