Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitM30 committed Feb 6, 2017
1 parent 7b9e2f1 commit 79bd466
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @param {element} options slider options
*/
function initAutoplay(slide, options) {
var autoplayTime = typeof options.autoplay === 'number' ? options.autoplay : 2500;
var autoplayTime = typeof options.autoplay === 'number' ? options.autoplay : 3000;
var onAutoplayStart = window.setInterval(function () {
slide(false, true);
}, autoplayTime);
Expand Down
2 changes: 1 addition & 1 deletion dist/swiper.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/swiper.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils/init-autoplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export default function initAutoplay (slide, options) {
let autoplayTime = (typeof options.autoplay === 'number') ? options.autoplay : 3000;
let onAutoplayStart = window.setInterval(() => {
slide(false, options.direction === 'ltr' ? true : false);
slide(false, true);
}, autoplayTime);

return onAutoplayStart;
Expand Down

0 comments on commit 79bd466

Please sign in to comment.