Closed drewlonious closed 8 months ago
Hi @drewlonious,
Thank you for your feature request. From now on, please always create a new discussion and discuss stuff before you create a new issue.
With that said, you can achieve what you want like so:
function doSomethingWhenActiveOrNot(emblaApi) {
const { active } = emblaApi.internalEngine().options
// do what you want here
}
doSomethingWhenActiveOrNot(emblaApi)
emblaApi.on('reInit', doSomethingWhenActiveOrNot)
Best, David
@davidjerleke Oh there it is. Thanks for this. Noted about discussion
Feature request is related to
Is your feature request related to an issue?
Describe the solution you'd like
Describe alternatives you've considered
Additional context