mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-16 09:25:06 +01:00
prevent touchmove default action on android (#143)
This commit is contained in:
parent
6af14aca0f
commit
43c8990f2b
2 changed files with 17 additions and 12 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue