Skip to content

Commit 7ca6788

Browse files
committed
Updated startInterval
1 parent 4aa8dd8 commit 7ca6788

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/slideshow.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ function Slideshow({container = '#slideshow', slideshowSelector = '.slideshow',
428428
};
429429

430430
if (interval) {
431-
interval.startInterval();
431+
interval.startInterval({
432+
callback: () => {
433+
that.next();
434+
},
435+
ms: duration
436+
});
432437
}
433438
}

0 commit comments

Comments
 (0)