fix vertical centering of slide in ios chrome (closes #289)
This commit is contained in:
parent
2629be651a
commit
c21e6bbfed
2 changed files with 4 additions and 4 deletions
|
@ -234,7 +234,7 @@ var Reveal = (function(){
|
|||
*/
|
||||
function hideAddressBar() {
|
||||
|
||||
if( navigator.userAgent.match( /(iphone|ipod)/i ) ) {
|
||||
if( /iphone|ipod|android/gi.test( navigator.userAgent ) && !/crios/gi.test( navigator.userAgent ) ) {
|
||||
// Events that should trigger the address bar to hide
|
||||
window.addEventListener( 'load', removeAddressBar, false );
|
||||
window.addEventListener( 'orientationchange', removeAddressBar, false );
|
||||
|
@ -1729,7 +1729,7 @@ var Reveal = (function(){
|
|||
}
|
||||
|
||||
/**
|
||||
* Event handles for navigation control buttons.
|
||||
* Event handler for navigation control buttons.
|
||||
*/
|
||||
function onNavigateLeftClicked( event ) { event.preventDefault(); navigateLeft(); }
|
||||
function onNavigateRightClicked( event ) { event.preventDefault(); navigateRight(); }
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue