Преглед изворни кода

prevent additional inaccurate showSlide calls

Hakim El Hattab пре 10 година
родитељ
комит
ef333300a2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -2146,7 +2146,7 @@
 			distanceX,
 			distanceY;
 
-		if( horizontalSlidesLength ) {
+		if( horizontalSlidesLength && typeof indexh !== 'undefined' ) {
 
 			// The number of steps away from the present slide that will
 			// be visible