don't increase body height to try and hide address bar, caused issues in ios 7 safari
This commit is contained in:
parent
dd08b86a0f
commit
2736945385
10
js/reveal.js
10
js/reveal.js
|
@ -858,16 +858,6 @@ var Reveal = (function(){
|
||||||
*/
|
*/
|
||||||
function removeAddressBar() {
|
function removeAddressBar() {
|
||||||
|
|
||||||
// Portrait and not Chrome for iOS
|
|
||||||
if( window.orientation === 0 && !/crios/gi.test( navigator.userAgent ) ) {
|
|
||||||
document.documentElement.style.overflow = 'scroll';
|
|
||||||
document.body.style.height = '120%';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
document.documentElement.style.overflow = '';
|
|
||||||
document.body.style.height = '100%';
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout( function() {
|
setTimeout( function() {
|
||||||
window.scrollTo( 0, 1 );
|
window.scrollTo( 0, 1 );
|
||||||
}, 10 );
|
}, 10 );
|
||||||
|
|
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 New Issue
Block a user