Fix reveal (#1563)

Fix race condition in slide show

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2021-10-16 21:45:22 +02:00 committed by GitHub
parent 3958ef550d
commit e84ed1398f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 84 additions and 19 deletions

View file

@ -184,9 +184,9 @@ declare module 'reveal.js' {
public getPlugins(): { [name: string]: Plugin }
// States
// public addEventListener(type: string, listener: (event: any) => void, useCapture?: boolean): void
// public removeEventListener(type: string, listener: (event: any) => void, useCapture?: boolean): void
// Added only the events we need
public addEventListener(type: 'slidechanged', listener: (event: SlideEvent) => void, useCapture?: boolean): void
public removeEventListener(type: 'slidechanged', listener: (event: SlideEvent) => void, useCapture?: boolean): void
// State Checks
public isFirstSlide(): boolean