Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
merged with upstream 3.9.0
Browse files Browse the repository at this point in the history
Includes a temporary fixes that need to be addressed later:

RevealJs now enables `linearMode` when the slides are one-dimensional, This interferes with the hidden sections. It is forced to `false` for now
  • Loading branch information
rparree committed May 24, 2020
1 parent af85dcb commit 5a6e6d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -5105,6 +5105,7 @@
}

if( previousSlide ) {
// TODO fux this for hidden sections
var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined;
var h = indexh - 1;
slide( h, v );
Expand Down Expand Up @@ -5271,6 +5272,8 @@
// the presentation is one-dimensional
var useLinearMode = config.navigationMode === 'linear' || !hasHorizontalSlides() || !hasVerticalSlides();

//webyarn temporary fix
useLinearMode=false
var triggered = false;

// 1. User defined key bindings
Expand Down Expand Up @@ -5511,21 +5514,11 @@
}
else if( deltaY > touch.threshold ) {
touch.captured = true;
if( config.navigationMode === 'linear' ) {
navigatePrev();
}
else {
navigateUp();
}
navigateUp();
}
else if( deltaY < -touch.threshold ) {
touch.captured = true;
if( config.navigationMode === 'linear' ) {
navigateNext();
}
else {
navigateDown();
}
navigateDown();
}

// If we're embedded, only block touch events if they have
Expand Down
2 changes: 1 addition & 1 deletion webyarns/lib/webyarn-plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a6e6d4

Please sign in to comment.