angular-carousel icon indicating copy to clipboard operation
angular-carousel copied to clipboard

vertical slide method

Open shenqihui opened this issue 8 years ago • 2 comments

use rn-carousel-vertical to choose vertical slide, default as Horizontal.

and the example is added.

thanks.

shenqihui avatar Nov 18 '15 10:11 shenqihui

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 avatar Nov 23 '15 18:11 willyboy

@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.

shenqihui avatar Nov 24 '15 06:11 shenqihui