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

[Feat]: Trigger event (autoplay:select) on autoplay index update #1054

Merged

Conversation

Mitch-At-Work
Copy link
Contributor

@Mitch-At-Work Mitch-At-Work commented Nov 6, 2024

Emit autoplay:triggered event on autoplay index change as discussed in:

Event is emitted after index change; listeners can retrieve the latest selectedScrollSnap from emblaApi regardless of direction to be compatible with upcoming autoplay direction feature.

@davidjerleke davidjerleke added feature request New feature or request plugin Issue is related to plugins labels Nov 7, 2024
@davidjerleke davidjerleke self-requested a review November 7, 2024 08:41
Copy link
Owner

@davidjerleke davidjerleke left a comment

Choose a reason for hiding this comment

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

Nicely done 👍.

Just two minor comments. In addition to these, we should add the event to the docs.

@davidjerleke davidjerleke added the changes requested Changes needed for this to be approved label Nov 7, 2024
@davidjerleke davidjerleke changed the title [Feat]: Autoplay:triggered event [Feat]: Autoplay:select event Nov 7, 2024
@davidjerleke davidjerleke added APPROVED 👍 This has been approved and removed changes requested Changes needed for this to be approved labels Nov 7, 2024
@davidjerleke
Copy link
Owner

davidjerleke commented Nov 7, 2024

Thanks for your contribution @Mitch-At-Work. Feel free to squash the commits into to a single commit with the message:

Implement #1048.

Then it’s ready for a merge. If not, I will do it when possible.

Cheers 👍🏻!

@davidjerleke davidjerleke changed the title [Feat]: Autoplay:select event [Feat]: Trigger event (autoplay:select) on autoplay index update Nov 8, 2024
@Mitch-At-Work Mitch-At-Work force-pushed the autoplay-triggered-event branch from 6852be1 to 71a5d47 Compare November 8, 2024 17:08
@davidjerleke davidjerleke merged commit e714441 into davidjerleke:master Nov 8, 2024
@davidjerleke
Copy link
Owner

@Mitch-At-Work great work and thanks for your contribution. This feature will be included in the next release 🥳.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APPROVED 👍 This has been approved feature request New feature or request plugin Issue is related to plugins resolved This issue is resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants