stopPropagation() with tap event
问题 I'm using hammer.js and it appears that I event.stopPropagation() doesn't work with tap event. If I click on the child, the associated event is triggered but parent's event is also triggered and I don't want that. $('#parent').hammer().bind('tap', function(e) { $(this).css('background', 'red'); }); $('#child').hammer().bind('tap', function(e) { e.stopPropagation(); $(this).css('background', 'blue'); }); Here is an example: http://jsfiddle.net/Mt9gV/ I also tried with jGestures and