stephband / jquery.event.swipe

jQuery custom events swipeleft, swiperight, swipeup and swipedown
stephband.info/jquery.event.swipe
446 stars 180 forks source link

swipe not working #22

Closed RenShine closed 10 years ago

RenShine commented 10 years ago

mycode is not working
HTML:

js: jQuery(document).ready(function() { var wrap = jQuery('#swipe'); wrap .on('swipeleft', function(e) { alert('ss'); }) .on('swiperight',function(e){ alert('fff'); }); })

stephband commented 10 years ago

Well, it looks correct, so I suspect something else is wrong. Have you included the dependency jquery.event.move? Are you sure that's the correct id?