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

Add support for filtering events #29

Open
ghost opened this issue Oct 20, 2014 · 0 comments
Open

Add support for filtering events #29

ghost opened this issue Oct 20, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 20, 2014

I am trying to implement an event handler on the body element that is targeted to sub-elements with a selector. In the below example, the click handler works because jQuery allows you to filter for child elements on the click handler, but the handler for hammer does not.

$("body").on("click", "[data-evo-overlay-toggle]", toggleOverlay );
$("body").hammer().on("swiperight", "[data-evo-overlay-swiperight]", toggleOverlay);

It would be nice to have support for filtering.

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

0 participants