summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHakim El Hattab2019-06-10 07:13:54 +0200
committerHakim El Hattab2019-06-10 07:14:04 +0200
commitbba760e5491f9a8adf3ca239c7eda3423f9b602a (patch)
treef100adc0cbee506b7f3fe3d67abdec33aae66d91
parent51e8da5d9adcd9e9b959f6a0ac5b9be7a6218948 (diff)
remove available route changes #2416
-rw-r--r--js/reveal.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/js/reveal.js b/js/reveal.js
index a449e75..ef7ce49 100644
--- a/js/reveal.js
+++ b/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
if( config.rtl ) {
var left = routes.left;
@@ -5441,7 +5436,7 @@
if( deltaX > touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
touch.captured = true;
- if (config.navigationMode === 'linear') {
+ if( config.navigationMode === 'linear' ) {
if( config.rtl ) {
navigateNext();
}
@@ -5455,7 +5450,7 @@
}
else if( deltaX < -touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
touch.captured = true;
- if (config.navigationMode === 'linear') {
+ if( config.navigationMode === 'linear' ) {
if( config.rtl ) {
navigatePrev();
}
@@ -5469,7 +5464,7 @@
}
else if( deltaY > touch.threshold ) {
touch.captured = true;
- if (config.navigationMode === 'linear') {
+ if( config.navigationMode === 'linear' ) {
navigatePrev();
}
else {
@@ -5478,7 +5473,7 @@
}
else if( deltaY < -touch.threshold ) {
touch.captured = true;
- if (config.navigationMode === 'linear') {
+ if( config.navigationMode === 'linear' ) {
navigateNext();
}
else {