Browse Source

only call slide() after hash changes if indices have changed #529

Hakim El Hattab 11 years ago
parent
commit
8dcf324f7a
2 changed files with 4 additions and 2 deletions
  1. 3 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 3 - 1
js/reveal.js

@@ -1819,7 +1819,9 @@ var Reveal = (function(){
 			var h = parseInt( bits[0], 10 ) || 0,
 			var h = parseInt( bits[0], 10 ) || 0,
 				v = parseInt( bits[1], 10 ) || 0;
 				v = parseInt( bits[1], 10 ) || 0;
 
 
-			slide( h, v );
+			if( h !== indexh || v !== indexv ) {
+				slide( h, v );
+			}
 		}
 		}
 
 
 	}
 	}

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