remove available route changes #2416
This commit is contained in:
parent
51e8da5d9a
commit
bba760e549
13
js/reveal.js
13
js/reveal.js
|
@ -3951,11 +3951,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( config.navigationMode === 'linear' ) {
|
|
||||||
routes.right = routes.right || routes.down;
|
|
||||||
routes.left = routes.left || routes.up;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reverse horizontal controls for rtl
|
// Reverse horizontal controls for rtl
|
||||||
if( config.rtl ) {
|
if( config.rtl ) {
|
||||||
var left = routes.left;
|
var left = routes.left;
|
||||||
|
@ -5441,7 +5436,7 @@
|
||||||
|
|
||||||
if( deltaX > touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
|
if( deltaX > touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
|
||||||
touch.captured = true;
|
touch.captured = true;
|
||||||
if (config.navigationMode === 'linear') {
|
if( config.navigationMode === 'linear' ) {
|
||||||
if( config.rtl ) {
|
if( config.rtl ) {
|
||||||
navigateNext();
|
navigateNext();
|
||||||
}
|
}
|
||||||
|
@ -5455,7 +5450,7 @@
|
||||||
}
|
}
|
||||||
else if( deltaX < -touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
|
else if( deltaX < -touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
|
||||||
touch.captured = true;
|
touch.captured = true;
|
||||||
if (config.navigationMode === 'linear') {
|
if( config.navigationMode === 'linear' ) {
|
||||||
if( config.rtl ) {
|
if( config.rtl ) {
|
||||||
navigatePrev();
|
navigatePrev();
|
||||||
}
|
}
|
||||||
|
@ -5469,7 +5464,7 @@
|
||||||
}
|
}
|
||||||
else if( deltaY > touch.threshold ) {
|
else if( deltaY > touch.threshold ) {
|
||||||
touch.captured = true;
|
touch.captured = true;
|
||||||
if (config.navigationMode === 'linear') {
|
if( config.navigationMode === 'linear' ) {
|
||||||
navigatePrev();
|
navigatePrev();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -5478,7 +5473,7 @@
|
||||||
}
|
}
|
||||||
else if( deltaY < -touch.threshold ) {
|
else if( deltaY < -touch.threshold ) {
|
||||||
touch.captured = true;
|
touch.captured = true;
|
||||||
if (config.navigationMode === 'linear') {
|
if( config.navigationMode === 'linear' ) {
|
||||||
navigateNext();
|
navigateNext();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue