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

Implementing function carouselDidEndScrollingAnimation doesn't allow Mapview to move. #875

Closed kinza88 closed 5 years ago

kinza88 commented 5 years ago

Hi. I am using iCarousel 1.8, in my project. There is a screen in which their is a mapview on upper half of screen and carousel on the lower half. carousel shows some item (name and location) and the same object is shown in the form of annotations on map. When I tap on item in carousel, the map is zoomed to the annotation of that item. Moreover map can be moved and dragged by the user. Till here things are working fine. But, when I implement carouselDidEndScrollingAnimation function. The mapview gets stuck and cannot be moved or dragged.

I have tried carouselDidEndDragging, carouselDidEndDecelerating functions and the mapview works fine with them, but unfortunately only carouselDidEndScrollingAnimation function serves my purpose. I have also changed the UI constraints of mapview and carousel to make them independent of each other in UI but still no effect.

kinza88 commented 5 years ago

There was an issue with my logic that was creating an infinite loop, thus not allowing mapview to move.