nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12.01k stars 2.58k forks source link

Scroll only when pan gesture starts on an item view #290

Open tonisalae opened 11 years ago

tonisalae commented 11 years ago

Hello,

I was wondering if the is a way to scroll only when the user starts the pan gesture on an item view.

I'm using iCarousel with large spacing between item views. So, the response of the component would be better for me if it only scrolls when user touches an item view and then pans.

Thank you very much, Toni

nicklockwood commented 11 years ago

You'll have to set carousel.scrollEnabled = NO and then implement your own UIPanGestureRecognizer. It's not especially difficult as you can just copy the logic from iCarousel's internal pan gesture recognizer.