Merge pull request #783 from MrTimscampi/dependencies-update

Update dependencies
This commit is contained in:
dkanada 2020-02-11 03:41:24 +09:00 committed by GitHub
commit cb938d55de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 347 additions and 271 deletions

View file

@ -67,7 +67,7 @@ _define("shaka", function() {
// swiper
var swiper = require("swiper");
require("swiper/dist/css/swiper.min.css");
require("swiper/css/swiper.min.css");
_define("swiper", function() {
return swiper;
});

View file

@ -212,13 +212,15 @@ define(['dialogHelper', 'inputManager', 'connectionManager', 'layoutManager', 'f
// Optional parameters
direction: 'horizontal',
loop: options.loop !== false,
autoplay: options.interval || 8000,
autoplay: {
delay: options.interval || 8000
},
// Disable preloading of all images
preloadImages: false,
// Enable lazy loading
lazyLoading: true,
lazyLoadingInPrevNext: true,
autoplayDisableOnInteraction: false,
lazy: true,
loadPrevNext: true,
disableOnInteraction: false,
initialSlide: options.startIndex || 0,
speed: 240
});