瀏覽代碼

remove delay from url update #530

Hakim El Hattab 11 年之前
父節點
當前提交
5cb9a58938
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 3 4
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 3 - 4
js/reveal.js

@@ -1338,10 +1338,6 @@ var Reveal = (function(){
 			activateOverview();
 		}
 
-		// Update the URL hash after a delay since updating it mid-transition
-		// is likely to cause visual lag
-		writeURL( 1500 );
-
 		// Find the current horizontal slide and any possible vertical slides
 		// within it
 		var currentHorizontalSlide = horizontalSlides[ indexh ],
@@ -1413,6 +1409,9 @@ var Reveal = (function(){
 		updateProgress();
 		updateBackground();
 
+		// Update the URL hash
+		writeURL();
+
 	}
 
 	/**

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff