fix last slide shortcut in looped presentations #3007

This commit is contained in:
Hakim El Hattab 2021-09-16 10:42:55 +02:00
parent 5f22d6c3da
commit 2aed592d1f
3 changed files with 4 additions and 4 deletions

2
dist/reveal.esm.js vendored

File diff suppressed because one or more lines are too long

2
dist/reveal.js vendored

File diff suppressed because one or more lines are too long

View File

@ -296,7 +296,7 @@ export default class Keyboard {
// L, RIGHT // L, RIGHT
else if( keyCode === 76 || keyCode === 39 ) { else if( keyCode === 76 || keyCode === 39 ) {
if( event.shiftKey ) { if( event.shiftKey ) {
this.Reveal.slide( Number.MAX_VALUE ); this.Reveal.slide( this.Reveal.getHorizontalSlides().length - 1 );
} }
else if( !this.Reveal.overview.isActive() && useLinearMode ) { else if( !this.Reveal.overview.isActive() && useLinearMode ) {
this.Reveal.next({skipFragments: event.altKey}); this.Reveal.next({skipFragments: event.altKey});
@ -335,7 +335,7 @@ export default class Keyboard {
} }
// END // END
else if( keyCode === 35 ) { else if( keyCode === 35 ) {
this.Reveal.slide( Number.MAX_VALUE ); this.Reveal.slide( this.Reveal.getHorizontalSlides().length - 1 );
} }
// SPACE // SPACE
else if( keyCode === 32 ) { else if( keyCode === 32 ) {