Skip to content

[Android/Windows]: Progress View animation runtime bug #870

@DieSlower

Description

@DieSlower

There seems to be a bug in the ProgressView widget:
(https://docs.coronalabs.com/api/library/widget/newProgressView.html)

This bug can be seen if the widget is created with the isAnimated variable set to True

It seems the bar uses some form of acceleration to do its animation? In most cases there is no problem, but if the bar is at 1.0, and it is suddenly set to 0.0 when the animation retreats, it for a fraction of a second has a stutter in the beginning of the bar. It seems like the texture is projected backwards past the bars beginning because of it's momentum.

I'm attaching an animated gif with screen capture of both options:
isAnimated= true
Image

If animation is disabled, then the bug vanishes, and the bar resets to 0 as expected.
isAnimated= false
Image

To Reproduce
Steps to reproduce the behavior:
Create a ProgressView widget. Set its animation (isAnimated) value to true on create. Test setting its value from 0 to 1 and from 1 to 0. You should notice a texture stutter/reversal when the bar quickly approaches 0.

Then recreate the ProgressView widget with isAnimated set to false. Test setting it's value from 0 to 1 and from 1 to 0. Note that when the bar approaches 0, there is no stutter.

Target platform and where build was made:
Tested on android and windows, same effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions