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

Transition-bounce: endless loop when t>1 #1

Closed
ixpnu opened this issue Aug 31, 2014 · 3 comments
Closed

Transition-bounce: endless loop when t>1 #1

ixpnu opened this issue Aug 31, 2014 · 3 comments

Comments

@ixpnu
Copy link

ixpnu commented Aug 31, 2014

Hi,
thanks for putting this library together. I noticed that if you accidentally pass a t>1 to transition-bounce, the evalutation never finishes.

@gstamp
Copy link
Owner

gstamp commented Sep 18, 2014

When you say the evaluation never finishes do you mean the value goes outside the expected range?

For example, when I evaluate:

(ease-in transition-bounce 2)

I get -6.5625.

I could handle this in a few ways. I could add preconditions to the argument to check for an invalid t value or I could constrain the t value to the range 0 to 1. Did you have any particular preferences?

@ixpnu
Copy link
Author

ixpnu commented Sep 19, 2014

My apologies for not even bothering to include the code. Using ease-in works here as well, but

(ease-out transition-bounce 2)

seems to get stuck in an infinite loop.

@gstamp
Copy link
Owner

gstamp commented Oct 12, 2014

Infinite loop fixed in 0.5.0

Thanks for the report.

@gstamp gstamp closed this as completed Oct 12, 2014
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

2 participants