Skip to content

Conversation

@MisterProper9000
Copy link

@MisterProper9000 MisterProper9000 commented Oct 30, 2021

In transition.blink function there is a typo: not existing easing.continousLoop is used instead of easing.continuousLoop.

This is cause blinked object to fade out smooth and then instant fade in since easing.linear is used for transition except easing.continousLoop which is equals to nil.

The bug appeared on September 11, 2013 with the release of version 2.0 of transition framework, when the function itself was added (initially with this error).

I cannot find any topics related to this behaviour on forum neither issue on Github or Discord. Maybe because of this behaviour falls under the definition of "blinking" and doesn`t arise any questions.

Anyway, i doubt this is desired behaviour that developers wanted to implement.

To fix this typo and not affect any of millions existing projects I added a new function transition.blinkContinuous with correct continuousLoop.

Here you can see the difference:
blink_diff
.

To fix typo in blink function and not affecting existing projects a blinkContinuous function was added.
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.

1 participant