diff options
author | Hakim El Hattab | 2017-02-17 10:50:52 +0100 |
---|---|---|
committer | Hakim El Hattab | 2017-02-17 10:50:52 +0100 |
commit | 1cee8998a0e423265d7e99feb6a74d627fc306ca (patch) | |
tree | 79dc2c97efded0de4fa64561d9ae0f421cf6eaf2 /js | |
parent | fa70a7a5174b16b1b4e9ccaf3f36cbb082cc8051 (diff) |
fix overview rendering issues in latest chrome #1649
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index d31d591..5325beb 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1797,6 +1797,10 @@ updateProgress(); updateParallax(); + if( isOverview() ) { + updateOverview(); + } + } } @@ -2012,11 +2016,14 @@ */ function updateOverview() { + var vmin = Math.min( window.innerWidth, window.innerHeight ); + var scale = Math.max( vmin / 5, 150 ) / vmin; + transformSlides( { overview: [ + 'scale('+ scale +')', 'translateX('+ ( -indexh * overviewSlideWidth ) +'px)', - 'translateY('+ ( -indexv * overviewSlideHeight ) +'px)', - 'translateZ('+ ( window.innerWidth < 400 ? -1000 : -2500 ) +'px)' + 'translateY('+ ( -indexv * overviewSlideHeight ) +'px)' ].join( ' ' ) } ); |