diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-10-04 09:32:20 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-10-04 09:32:20 -0400 |
commit | 43c8990f2b195e39c09f801e20beb0efa330a198 (patch) | |
tree | c19cbdec59752fa826c0d0832a931a5fd8813a0b /js/reveal.js | |
parent | 6af14aca0f7c9501a3bad63d58de4163ef014c45 (diff) | |
download | fosdem-2018-presentation-43c8990f2b195e39c09f801e20beb0efa330a198.tar fosdem-2018-presentation-43c8990f2b195e39c09f801e20beb0efa330a198.tar.gz |
prevent touchmove default action on android (#143)
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 1b4d1f3..06ecde6 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.1 r27 + * reveal.js 2.1 r28 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -485,6 +485,11 @@ var Reveal = (function(){ event.preventDefault(); } + // There's a bug with swiping on some Android devices unless + // the default action is always prevented + else if( navigator.userAgent.match( /android/gi ) ) { + event.preventDefault(); + } } /** |