scale presentations on ipad instead of zoom
This commit is contained in:
parent
24c493fb83
commit
7ee4e0ba66
|
@ -552,6 +552,8 @@ var Reveal = (function(){
|
||||||
*/
|
*/
|
||||||
function layout() {
|
function layout() {
|
||||||
|
|
||||||
|
if( dom.wrapper ) {
|
||||||
|
|
||||||
// Available space to scale within
|
// Available space to scale within
|
||||||
var availableWidth = dom.wrapper.offsetWidth,
|
var availableWidth = dom.wrapper.offsetWidth,
|
||||||
availableHeight = dom.wrapper.offsetHeight;
|
availableHeight = dom.wrapper.offsetHeight;
|
||||||
|
@ -586,7 +588,7 @@ var Reveal = (function(){
|
||||||
|
|
||||||
// Prefer applying scale via zoom since Chrome blurs scaled content
|
// Prefer applying scale via zoom since Chrome blurs scaled content
|
||||||
// with nested transforms
|
// with nested transforms
|
||||||
if( typeof dom.slides.style.zoom !== 'undefined' && !navigator.userAgent.match( /(iphone|ipod|android)/gi ) ) {
|
if( typeof dom.slides.style.zoom !== 'undefined' && !navigator.userAgent.match( /(iphone|ipod|ipad|android)/gi ) ) {
|
||||||
dom.slides.style.zoom = scale;
|
dom.slides.style.zoom = scale;
|
||||||
}
|
}
|
||||||
// Apply scale transform as a fallback
|
// Apply scale transform as a fallback
|
||||||
|
@ -630,6 +632,8 @@ var Reveal = (function(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores the vertical index of a stack so that the same
|
* Stores the vertical index of a stack so that the same
|
||||||
* vertical slide can be selected when navigating to and
|
* vertical slide can be selected when navigating to and
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue