pds-dev-kit-web-test 2.7.265 → 2.7.266
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +1 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +1 -1
- package/package.json +1 -1
|
@@ -30,9 +30,7 @@ var CustomProgressbar = function (_a) {
|
|
|
30
30
|
(0, react_1.useEffect)(function () {
|
|
31
31
|
var updateTimer = function () {
|
|
32
32
|
var _a;
|
|
33
|
-
var remainingMs = (_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 0;
|
|
34
|
-
// 1. Math.max를 사용해 0 미만으로 내려가지 않도록 함
|
|
35
|
-
// 2. Math.ceil을 사용해 0.1초가 남아도 1초로 표시하도록 올림 처리
|
|
33
|
+
var remainingMs = (_a = leftTimeMsRef.current) !== null && _a !== void 0 ? _a : 0;
|
|
36
34
|
var sec = Math.max(0, Math.ceil(remainingMs / 1000));
|
|
37
35
|
setLeftTimeSec(sec);
|
|
38
36
|
};
|
|
@@ -22,9 +22,9 @@ function useSwiper() {
|
|
|
22
22
|
// swiper.autoplay.stop();
|
|
23
23
|
// return;
|
|
24
24
|
// }
|
|
25
|
+
console.log(swiper.autoplay.paused);
|
|
25
26
|
leftTimeMsRef.current = time;
|
|
26
27
|
progressRef.current = progress;
|
|
27
|
-
console.log('time', time, 'progress', progress);
|
|
28
28
|
}, []);
|
|
29
29
|
var onClickPrevBtn = function () {
|
|
30
30
|
if (swiperRef.current) {
|