fix vertical centering of slide in ios chrome (closes #289)

This commit is contained in:
Hakim El Hattab 2013-02-03 11:28:01 -05:00
parent 2629be651a
commit c21e6bbfed
2 changed files with 4 additions and 4 deletions

View File

@ -234,7 +234,7 @@ var Reveal = (function(){
*/ */
function hideAddressBar() { 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 // Events that should trigger the address bar to hide
window.addEventListener( 'load', removeAddressBar, false ); window.addEventListener( 'load', removeAddressBar, false );
window.addEventListener( 'orientationchange', 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 onNavigateLeftClicked( event ) { event.preventDefault(); navigateLeft(); }
function onNavigateRightClicked( event ) { event.preventDefault(); navigateRight(); } function onNavigateRightClicked( event ) { event.preventDefault(); navigateRight(); }

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long