Browse Source

delay hash changes to avoid transition lag in chrome and enable history by default (closes #22)

embed
Hakim El Hattab 13 years ago
parent
commit
87529c4adc
  1. 2
      index.html
  2. 8
      js/reveal.js

2
index.html

@ -225,7 +225,7 @@
progress: true, progress: true,
// If true; each slide will be pushed to the browser history // If true; each slide will be pushed to the browser history
history: false, history: true,
// Flags if mouse wheel navigation should be enabled // Flags if mouse wheel navigation should be enabled
mouseWheel: true, mouseWheel: true,

8
js/reveal.js

@ -74,7 +74,10 @@ var Reveal = (function(){
document.body.style['OTransform'] !== undefined, document.body.style['OTransform'] !== undefined,
// Throttles mouse wheel navigation // Throttles mouse wheel navigation
mouseWheelTimeout = 0; mouseWheelTimeout = 0,
// Delays updates to the URL due to a Chrome thumbnailer bug
writeURLTimeout = 0;
/** /**
* Starts up the slideshow by applying configuration * Starts up the slideshow by applying configuration
@ -490,7 +493,8 @@ var Reveal = (function(){
updateControls(); updateControls();
writeURL(); clearTimeout( writeURLTimeout );
writeURLTimeout = setTimeout( writeURL, 1500 );
} }
/** /**

Loading…
Cancel
Save