Skip to content

Conversation

@dvilchez
Copy link
Contributor

I'm using it in my project and I have to make some fixes to get it work properly.

pughpugh added a commit that referenced this pull request May 19, 2015
@pughpugh pughpugh merged commit 42f0be5 into pughpugh:master May 19, 2015
@pughpugh
Copy link
Owner

Ta, thanks @dvilchez

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I notice the demo page now accelerates after each iteration.

In hindsight I'm not sure this works. _setScale needs to be called after the setState seconds: props.seconds has been called. Even if you move the ordering around, I think the asynchronous nature of setState still messes this up.

@dvilchez
Copy link
Contributor Author

I can't notice it, but after reviewing the code I think it would be more simple if it wouldn't set the state due to the fact that it doesn't need that render method was called to redraw the canvas.

@pughpugh
Copy link
Owner

Do you mean - why set state if it's not intended to recall render? If so, I think I agree.

@dvilchez
Copy link
Contributor Author

Yes, That's it!

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

Successfully merging this pull request may close these issues.

2 participants