Browse Source

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

embed
Hakim El Hattab 12 years ago
parent
commit
c21e6bbfed
  1. 4
      js/reveal.js
  2. 4
      js/reveal.min.js

4
js/reveal.js

@ -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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save