nicklockwood / iCarousel

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

Only the current item can respond to pan gestures. #815

Closed CXTretar closed 7 years ago

CXTretar commented 7 years ago

I add pan gestures to all items, but only the current item can respond to the corresponding gestures.

nicklockwood commented 7 years ago

That's by design. Only the currently centered item has userInteractionEnabled.

CXTretar commented 7 years ago

Can I change the item's userInteractionEnabled? Does that make a mistake?

nicklockwood commented 7 years ago

You'll have to edit the library. There's no option for that.

CXTretar commented 7 years ago

I set it like this : self.carousel.centerItemWhenSelected = NO; and it works.

nicklockwood commented 7 years ago

Ah, OK. Yes, that's fine if you don't need that functionality.

CXTretar commented 7 years ago

OK, Thanks !!!