Przeglądaj źródła

Merge pull request #150 from hexplor/patch-1

Autplay Enabled - Jump to a specific slide fix
Jay Salvat 6 lat temu
rodzic
commit
ee25dfcd19
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/vegas.js

+ 5 - 1
src/vegas.js

@@ -541,7 +541,11 @@
         },
 
         _end: function () {
-            this.ended = true;
+            if (this.settings.autoplay) {
+                this.ended = false;
+            } else {
+                this.ended = true;
+            }
             this._timer(false);
             this.trigger('end');
         },