Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollectionView scrolling behaviour #852

Closed
alextudge opened this issue Apr 8, 2019 · 3 comments
Closed

CollectionView scrolling behaviour #852

alextudge opened this issue Apr 8, 2019 · 3 comments

Comments

@alextudge
Copy link

Check these before submitting:

  • [/] The issue doesn't involve an Unsupported Feature
  • [/] This issue isn't related to another open issue

This issue is a:

  • [] Non-Crashing Bug (Visual or otherwise)
  • [] Crashing Bug
  • [] Feature Request
  • [/] Regression (Something that once worked, but doesn't work anymore)

Which Version of Lottie are you using?

Lottie 3.0

What Platform are you on?

  • [] MacOS
  • [/] iOS

What Language are you in?

  • [/] Swift
  • [] Objective-C

Expected Behavior

When adding lottie into a collectionView (one lottie per full screen cell) the horizontal transition should remain smooth.

Actual Behavior

When scrolling through a collection view (one lottie per full screen cell) the horizontal transition is jumpy and generates the following console output:
2019-04-08 11:15:45.705072+0100 MoneyBox[6939:161528] [UIWorkIntervalTiming] workIntervalStart: startTimestamp > targetTimestamp; rolling forward by 0.483333

Converting the lottie view to UIView's confirms that normal behaviour and no console output is generated when lottie isn't present

Code Example

Each cell's lottie is played on cell appearance, and has its currentProgress set to 0 as the cell disappears. It is set to playOnce.

Animation JSON

@lucasmpaim
Copy link

+1 Same problem with UITableView, when play an animation the scroll not remain smooth

@tundsD53
Copy link

tundsD53 commented Jan 2, 2020

I've downgraded to version 2.5.3 in Obj-C and the scrolling seems to be smoother, so this is definitely related to Swift and the issue tagged above.

@calda
Copy link
Member

calda commented Jul 13, 2022

Closing since this seems like a question and not a bug report. Feel free to start a discussion if you'd still like support.

@calda calda closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants