I'm having issues binding a custom event to a delegate control
Any normal day I use the plugin like 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 are triggered
});
If I bind it like this it works
$($galleryImageContainer).delegate('.galleryImage', 'click', function () {
// ... magic stuff
});
But if I use swipe it doesn't
$($galleryImageContainer).delegate('.galleryImage', 'swipe', function () {
// ... magic stuff
});
Is there a way to bind to custom events like this?
Thans