fix case where animation does not start in certain cases#4
fix case where animation does not start in certain cases#4DimaVartanian wants to merge 1 commit intodreamengine:masterfrom
Conversation
|
What are the cases where the animation might not start? |
|
@DimaVartanian What are the cases where the animation might not start? |
|
@dreamengine sorry about that I've been totally swamped. I need to investigate this a little more to find a case that is reproducible outside of my app. |
|
I've found out that when DEInfiniteTileMarqueeView is used inside UITableViewCell it could stop animating, if you call beginScrollAnimation every time you configure the cell it doesn't stop. So, I see three ways to fix this:
So, can anyone try solution 3? |
|
@maniak-dobrii do the changes proposed by Dima fix the issue you mentioned? As to the problem you are seeing, the animation might be stopped prematurely when the infinite view is removed from the UI rendering tree as a result of the table cell being recycled. (We have a conditional in line 184 that would prevent the animation from repeating if the previous animation did not finish.) If this is the case and Dima's solution does not work, we could add a We're a little swamped at the moment on some other projects and can't investigate this some more, but if Dima's solution fixes this issue then we'll merge it in. Otherwise, the willMoveToSuperview: solution might do the trick (if it does, feel free to put in a pull request :-)). |
|
@maniak-dobrii does my pull request fix your issue? |
No description provided.