'slidechange' -> 'beforeslidechange' (closes #3003)

This commit is contained in:
Hakim El Hattab 2021-09-20 09:00:17 +02:00
parent ad50dd513f
commit cb454b0540

View File

@ -1200,7 +1200,7 @@ export default function( revealElement, options ) {
// Dispatch an event before hte slide // Dispatch an event before hte slide
const slidechange = dispatchEvent({ const slidechange = dispatchEvent({
type: 'slidechange', type: 'beforeslidechange',
data: { data: {
indexh: h === undefined ? indexh : h, indexh: h === undefined ? indexh : h,
indexv: v === undefined ? indexv : v, indexv: v === undefined ? indexv : v,