Created
May 18, 2012 15:51
-
-
Save andrewpthorp/2725974 to your computer and use it in GitHub Desktop.
Hammer Questions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wrapper"> | |
<div id="hammertime-inside-wrapper">This is a test</div> | |
</div> | |
<script> | |
$(function(){ | |
$("#wrapper").hammer(); | |
$("#hammertime-inside-wrapper").bind("tap", function(e) { console.log(e); }); | |
}); | |
</script> | |
<!-- | |
How would I add hammer to a wrapper element and catch the events on it's children? | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I know I can do something like this:
Which is fine, I was just wondering if there was an easier way.