Skip to content

Why does resizing window width cause my animation to slow down? #3341

Closed Answered by mattbal
mattbal asked this question in Q&A
Discussion options

You must be logged in to vote

Closing this because I found a work-around. I store a ref now with the lastWidth and only call animate when the width of the content changes. This reduces the number of calls to animate. I'm going to investigate later and see if I can find an area in the source code that is causing the animate speed to slow down, but for now I'm going to close this post.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattbal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant