prevent touchmove default action on android (#143)

This commit is contained in:
Hakim El Hattab
2012-10-04 09:32:20 -04:00
parent 6af14aca0f
commit 43c8990f2b
2 changed files with 17 additions and 12 deletions

View File

@ -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();
}
}
/**