supercharged-slider
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -113,6 +113,3 @@ var index = ""; | ||
updateSlideStyles: () => slides.forEach( | ||
(slide) => Object.assign(slide.style, { | ||
width: `${instance.slideWidth}px`, | ||
...instance.slideStyles | ||
}) | ||
(slide) => Object.assign(slide.style, instance.slideStyles) | ||
), | ||
@@ -166,2 +163,3 @@ scrollWrapperTo: (x) => { | ||
slider.slideWidth = slideWidth; | ||
slider.slideStyles.width = `${slideWidth}px`; | ||
} | ||
@@ -178,2 +176,3 @@ }); | ||
slider.slideWidth = (slider.element.clientWidth - marginPerView) / slider.slidesPerView; | ||
slider.slideStyles.width = `${slider.slideWidth}px`; | ||
} | ||
@@ -180,0 +179,0 @@ }); |
{ | ||
"name": "supercharged-slider", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "A super modular tiny slider library.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -11,2 +11,3 @@ import { Middleware } from '~/types'; | ||
slider.slideWidth = slideWidth; | ||
slider.slideStyles.width = `${slideWidth}px`; | ||
}, | ||
@@ -13,0 +14,0 @@ }); |
@@ -14,2 +14,3 @@ import { Middleware } from '~/types'; | ||
slider.slideWidth = (slider.element.clientWidth - marginPerView) / slider.slidesPerView; | ||
slider.slideStyles.width = `${slider.slideWidth}px`; | ||
}, | ||
@@ -16,0 +17,0 @@ }); |
@@ -79,6 +79,3 @@ import { Middleware, SlideChangeHandler, Slider } from '~/types'; | ||
updateSlideStyles: () => slides.forEach( | ||
(slide) => Object.assign(slide.style, { | ||
width: `${instance.slideWidth}px`, | ||
...instance.slideStyles, | ||
}), | ||
(slide) => Object.assign(slide.style, instance.slideStyles), | ||
), | ||
@@ -96,2 +93,3 @@ scrollWrapperTo: (x) => { | ||
runMiddlewares(middlewares, instance); | ||
instance.updateSlideStyles(); | ||
@@ -98,0 +96,0 @@ }; |
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
35509
868