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

is_complete returns true in Bounce & ReverseBounce modes on load animation #114

Closed
theashraf opened this issue Apr 2, 2024 · 0 comments · Fixed by #130
Closed

is_complete returns true in Bounce & ReverseBounce modes on load animation #114

theashraf opened this issue Apr 2, 2024 · 0 comments · Fixed by #130
Assignees
Labels
bug Something isn't working

Comments

@theashraf
Copy link
Member

theashraf commented Apr 2, 2024

       let player = DotLottiePlayer::new(Config {
            mode: Mode::ReverseBounce,
            autoplay: true,
            ..create_default_config()
        });

        assert!(
            player.load_animation_path(animation_path(), WIDTH, HEIGHT),
            "Animation should load"
        );

        assert!(player.is_playing(), "Animation should be playing");
        
         assert!(
            player.is_complete() == false,
            "Animation should not be complete"
        ); // fails here for Bounce & ReverseBounce modes 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant