1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-07 23:26:57 +02:00

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

This commit is contained in:
Hakim El Hattab
2012-03-24 12:36:34 -04:00
parent b72bee3219
commit 87529c4adc
2 changed files with 7 additions and 3 deletions

View File

@@ -74,7 +74,10 @@ var Reveal = (function(){
document.body.style['OTransform'] !== undefined,
// 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
@@ -490,7 +493,8 @@ var Reveal = (function(){
updateControls();
writeURL();
clearTimeout( writeURLTimeout );
writeURLTimeout = setTimeout( writeURL, 1500 );
}
/**