overview mode: fix missing thumbs in adjacent stacks with over 10 vertical slides (closes #3754)
This commit is contained in:
parent
dfc5690c6d
commit
eb95b14531
5 changed files with 9 additions and 7 deletions
2
dist/reveal.esm.js
vendored
2
dist/reveal.esm.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.esm.js.map
vendored
2
dist/reveal.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js
vendored
2
dist/reveal.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js.map
vendored
2
dist/reveal.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1782,14 +1782,16 @@ export default function( revealElement, options ) {
|
||||||
|
|
||||||
if( horizontalSlidesLength && typeof indexh !== 'undefined' ) {
|
if( horizontalSlidesLength && typeof indexh !== 'undefined' ) {
|
||||||
|
|
||||||
|
const isOverview = overview.isActive();
|
||||||
|
|
||||||
// The number of steps away from the present slide that will
|
// The number of steps away from the present slide that will
|
||||||
// be visible
|
// be visible
|
||||||
let viewDistance = overview.isActive() ? 10 : config.viewDistance;
|
let viewDistance = isOverview ? 10 : config.viewDistance;
|
||||||
|
|
||||||
// Shorten the view distance on devices that typically have
|
// Shorten the view distance on devices that typically have
|
||||||
// less resources
|
// less resources
|
||||||
if( Device.isMobile ) {
|
if( Device.isMobile ) {
|
||||||
viewDistance = overview.isActive() ? 6 : config.mobileViewDistance;
|
viewDistance = isOverview ? 6 : config.mobileViewDistance;
|
||||||
}
|
}
|
||||||
|
|
||||||
// All slides need to be visible when exporting to PDF
|
// All slides need to be visible when exporting to PDF
|
||||||
|
|
@ -1822,7 +1824,7 @@ export default function( revealElement, options ) {
|
||||||
|
|
||||||
if( verticalSlidesLength ) {
|
if( verticalSlidesLength ) {
|
||||||
|
|
||||||
let oy = getPreviousVerticalIndex( horizontalSlide );
|
let oy = isOverview ? 0 : getPreviousVerticalIndex( horizontalSlide );
|
||||||
|
|
||||||
for( let y = 0; y < verticalSlidesLength; y++ ) {
|
for( let y = 0; y < verticalSlidesLength; y++ ) {
|
||||||
let verticalSlide = verticalSlides[y];
|
let verticalSlide = verticalSlides[y];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue