Without code, I cannot tell where, but it sounds like you have an e.preventDefault
or a return false
or an e.stopPropagation
that is blocking the normal behavior somewhere in your javascript, perhaps at the end of the swipe event, which would be normal and expected for most functions, since you want to swipe, not go somewhere else, which is why a elements are excluded by default, since touchSwipe is basically overridding the default behavior.
But my question would be do you really want the element to be both clickable and swipeable?
If so, look at Tap vs Swipe, where in your swipe handler, you'd place something like this:
$("#test").swipe( {
tap:function(event, target) {
//click events go here
},
threshold:75
});
Or if you include the jquery.ui.ipad.js plugin you can then also pickup standard jQuery mouse events on children of the touchSwipe object. (Also from the Tap vs. Swipe page, which has examples, go look.)
Also, perhaps look at touchSwipes' defaults, where you can set all sorts of values and handlers for things like longTapThreshhold, doubleTap, tap, and triggerOnTouchLeave, etc.