jQuery delegate and custom events -
i'm having issues binding custom event delegate control
any normal day use plugin this
$(".galleryimage").swipe({ swipeleft: function (event, direction, distance, duration, fingercount) { self.changeimageright('swipe'); }, swiperight: function (event, direction, distance, duration, fingercount) { self.changeimageleft('swipe'); }, threshold: 75 // px before events triggered });
if bind works
$($galleryimagecontainer).delegate('.galleryimage', 'click', function () { // ... magic stuff });
but if use swipe doesn't
$($galleryimagecontainer).delegate('.galleryimage', 'swipe', function () { // ... magic stuff });
is there way bind custom events this?
thans
Comments
Post a Comment