skip transitions in notes window for better main window performance
This commit is contained in:
parent
f396b9b871
commit
37ebe0732c
|
@ -252,25 +252,17 @@
|
||||||
*/
|
*/
|
||||||
function setupIframes( data ) {
|
function setupIframes( data ) {
|
||||||
|
|
||||||
var currentParams = [
|
var params = [
|
||||||
'receiver',
|
'receiver',
|
||||||
'progress=false',
|
'progress=false',
|
||||||
'history=false',
|
'history=false',
|
||||||
'postMessageEvents=true'
|
|
||||||
].join( '&' );
|
|
||||||
|
|
||||||
var upcomingParams = [
|
|
||||||
'receiver',
|
|
||||||
'progress=false',
|
|
||||||
'history=false',
|
|
||||||
'controls=false',
|
|
||||||
'transition=none',
|
'transition=none',
|
||||||
'backgroundTransition=none'
|
'backgroundTransition=none'
|
||||||
].join( '&' );
|
].join( '&' );
|
||||||
|
|
||||||
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
|
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
|
||||||
var currentURL = data.url + '?' + currentParams + hash;
|
var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash;
|
||||||
var upcomingURL = data.url + '?' + upcomingParams + hash;
|
var upcomingURL = data.url + '?' + params + '&controls=false' + hash;
|
||||||
|
|
||||||
currentSlide = document.createElement( 'iframe' );
|
currentSlide = document.createElement( 'iframe' );
|
||||||
currentSlide.setAttribute( 'width', 1280 );
|
currentSlide.setAttribute( 'width', 1280 );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user