From 9dc223912e54f3b0b6d5261bdcc20ce1ba9fd240 Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Tue, 19 Feb 2019 19:20:33 +0100 Subject: [PATCH] Adding the slide element to the ws:slide-change event Fixes #127 --- src/js/modules/webslides.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/modules/webslides.js b/src/js/modules/webslides.js index ba44ced..b9f6977 100644 --- a/src/js/modules/webslides.js +++ b/src/js/modules/webslides.js @@ -315,6 +315,7 @@ export default class WebSlides { DOM.fireEvent(this.el, 'ws:slide-change', { slides: this.maxSlide_, + slideEl: slide.el, currentSlide0: this.currentSlideI_, currentSlide: this.currentSlideI_ + 1 });