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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -