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

Fixed #12706 - Added isPlaying method and fixed autoplay behaviour #12730

Closed
wants to merge 0 commits into from

Conversation

EnricoMessall
Copy link
Contributor

This merge requests add the isPlaying Method to the carousel and sets interval 100% to undefined when stopping carousel. Also when restarting the carousel or stopping it from other points outside the dots or pagings, the carousel had a broken behaviour due to wrong allowAutoplay States. Here the allowAutoplay states are now handled in these functions and so have always a correct autoplay behaviour.

@vercel
Copy link

vercel bot commented Mar 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
primeng ⬜️ Ignored (Inspect) Mar 25, 2023 at 0:33AM (UTC)

}
}

isPlaying(){
return this.interval;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can you convert to boolean, because now it is a number or undefined, for understanding is not clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

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.

2 participants