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

evaluate stepper option to Carousel #120

Closed
pixelzoom opened this issue Aug 24, 2018 · 7 comments
Closed

evaluate stepper option to Carousel #120

pixelzoom opened this issue Aug 24, 2018 · 7 comments

Comments

@pixelzoom
Copy link
Contributor

Carousel was converted to use TWIXT/Animation in phetsims/sun#381. The default is stepper: 'manual', which means that the client must call step to control the Carousel's animation. To avoid having to make changes in this sim, stepper: 'timer' was added to Carousel call sites, which means that the animation will run automatically using the sim Timer.

The responsible developer (that would be me) should evaluate what stepper value should be used.

@pixelzoom pixelzoom self-assigned this Aug 24, 2018
@pixelzoom
Copy link
Contributor Author

@jonathanolson randomly selected to review.

@pixelzoom pixelzoom assigned jonathanolson and unassigned pixelzoom Aug 24, 2018
@pixelzoom
Copy link
Contributor Author

pixelzoom commented Oct 27, 2018

Blocked until @samreid changes the default for Animation stepper, as planned in phetsims/twixt#19 (comment).

@samreid
Copy link
Member

samreid commented Oct 28, 2018

phetsims/twixt#19 (comment) seems to imply that the Carousel default should also be the PHET_CORE/Timer instead of manual.

@samreid
Copy link
Member

samreid commented Oct 28, 2018

I've changed the default for Animation to timer and correspondingly changed the default for Carousel to timer. This means they will automatically run with PHET_CORE/timer instead of requiring manual steps. Even though phetsims/twixt#19 isn't quite closed yet (it is pending testing and review), the bulk of the work is done, and it may be possible to proceed on this issue.

@jonathanolson
Copy link
Contributor

I've changed the default for Animation to timer

That sounds like a large API change, but I see cases (like in AnimationTests) that are manually stepped but use the default still. Are there cases that still need to be updated?

samreid added a commit to phetsims/twixt that referenced this issue Nov 1, 2018
@samreid
Copy link
Member

samreid commented Nov 1, 2018

I tried to catch as many cases as I could in the commits listed after phetsims/twixt#19 (comment), but maybe I missed some. I can re-review them. Thanks for pointing out the missed case in AnimationTests. I'll reassign phetsims/twixt#19 to double check.

@pixelzoom
Copy link
Contributor Author

stepper: timer (the new default for Carousel) is appropriate for function-builder. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants