angular-carousel
angular-carousel copied to clipboard
vertical slide method
use rn-carousel-vertical to choose vertical slide, default as Horizontal.
and the example is added.
thanks.
I wrote something very similar to this last week. $swipe only triggers horizontal events so can I ask how you're handling this? Did you need to add another library? I added the following: angular.element(iElement) .on('mousedown touchstart',function(e){ coords = getEventCoords(e); swipeStart(coords,e); }) .on('mousemove touchmove',function(e){ coords = getEventCoords(e); swipeMove(coords,e); }) .on('mouseup touchend',function(e){ swipeEnd(coords,e); });
Which required a few other changes.
@willyboy sorry,at that time i won't note this .and i dont use that method. And i looking into the code, i found that it use
$swipe.bind(iElement, {
start: swipeStart,
move: swipeMove,
end: swipeEnd,
cancel: function(event) {
swipeEnd({}, event);
}
});
to detect the event. but $swipe just detect left or right swipe, so we should choose another lib.