Closed CodeTappert closed 1 year ago
Hi,
Indeed, there is a problem with repeating events (especially Carousel.createSlide
and Carousel.removeSlide
).
But the Carousel.initSlide
event is expected to be fired for each slide. If you want to perform some action when the slide is created in the DOM, then use the Carousel.createSlide
event.
Hello, maybe there is a missunderstanding. I do nothing on createSlide or initSlide.
But on removeSlide. I basically need something similar to removeSlide but only for the Slides that to be removed from the DOM.
I know there is unselctSlide but this doesnt happen when i close the gallery
Yes, then use the Carousel.removeSlide
event, I will fix the repetition.
Hi, It should be fixed in the latest release.
Describe the bug
I recently noticed that the closing of my fancybox gallery takes a lot longer then usual.
So i started to log the events.
And i see this
It initializes all of the slides (and removes each one of them)
This isnt behaviour i noticed before.
Is there a way to reduce the amount of slides initialized?
Reproduction
Having a gallery with a lot of images and having custom logic in removeSlide Event that takes time
My code:
Additional context
No response