iCarousel icon indicating copy to clipboard operation
iCarousel copied to clipboard

Scrolling one at a time

Open gusabdala opened this issue 14 years ago • 11 comments

I wanted to make the change so that when you swipe it scrolls a maximum of 1 item in that direction instead of multiple. . Seems like a simple change but I can't seem to figure it out. Any help would be a appreciated.

gusabdala avatar Oct 10 '12 05:10 gusabdala

This currently isn't possible. I had the same question. Basically, you'll have to disable iCarousel's user interaction and add on your own swipe gestures that perform a scroll of 1.

ksmoran avatar Oct 10 '12 05:10 ksmoran

If you are implementing a flat, linear carousel, you could use my SwipeView library in paged mode instead. It has the same interface as iCarousel but is based on UIScrollView.

nicklockwood avatar Oct 10 '12 05:10 nicklockwood

I am implementing a flat linear carousel, but is it possible to have a spacing between the pages as the carousel does?

gusabdala avatar Oct 10 '12 14:10 gusabdala

Yes, just use the swipeViewItemSize method and specify a size that's slightly larger than the views you return from swipeView: viewForItemAtIndex: method.

nicklockwood avatar Oct 10 '12 14:10 nicklockwood

Worked like a charm. thanks!

gusabdala avatar Oct 11 '12 04:10 gusabdala

Still can't scroll 1 item ???? or you update or add new method to your project ??

Omarj avatar Dec 13 '12 09:12 Omarj

Omarj I ended up using his SwipeView library.

ksmoran avatar Dec 14 '12 00:12 ksmoran

@ksmoran what you mean by that ?? how u do it ?

Omarj avatar Dec 14 '12 11:12 Omarj

For those who end up on this issue like me, iCarousel now supports single-page swiping by setting pagingEnabled=YES.

vincentnock avatar Jul 06 '15 17:07 vincentnock

i still have issues with scrolling two or 2 or 3 page at a time.i want to restrict it by only one page at any time.i am using rotray type of carousle.can anyone please let me know if this is possible? with swipe right and left gesture it will be swipe only but user will not have manully scroll smoothly.

kamabhavik avatar Apr 02 '16 10:04 kamabhavik

Works like a charm pagingEnabled=YES. thanks @nicklockwood @vincentnock

pk75 avatar Jun 21 '16 13:06 pk75