supercharged-slider
Advanced tools
Comparing version 0.4.8 to 0.4.9
@@ -349,5 +349,5 @@ var index = ""; | ||
const loadImages = (slider, onLoad) => { | ||
const start = Math.min(slider.activeView, slider.activeView - 1); | ||
const start = Math.min(slider.activeView - 1, 0); | ||
let end = slider.activeView + slider.slidesPerView; | ||
end = Math.min(end - 1, slider.slides.length); | ||
end = Math.min(end + 1, slider.slides.length); | ||
const slides = slider.slides.slice(start, end); | ||
@@ -354,0 +354,0 @@ const images = slides.flatMap( |
{ | ||
"name": "supercharged-slider", | ||
"version": "0.4.8", | ||
"version": "0.4.9", | ||
"description": "A super modular tiny slider library.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -23,6 +23,6 @@ import { Middleware, Slider } from '~/types'; | ||
const loadImages = (slider: Slider, onLoad: OnLoad) => { | ||
const start = Math.min(slider.activeView, slider.activeView - 1); | ||
const start = Math.min(slider.activeView - 1, 0); | ||
let end = slider.activeView + slider.slidesPerView; | ||
end = Math.min(end - 1, slider.slides.length); | ||
end = Math.min(end + 1, slider.slides.length); | ||
@@ -29,0 +29,0 @@ const slides = slider.slides.slice(start, end); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
409134