From 892550f196ed954a85bf5b713a60a6aeb7480dc5 Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 2 Jul 2021 00:25:28 +0300 Subject: [PATCH] #31 : Add todo comments --- src/components/Carousel/Carousel.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Carousel/Carousel.svelte b/src/components/Carousel/Carousel.svelte index cf0d74d..aabbe25 100644 --- a/src/components/Carousel/Carousel.svelte +++ b/src/components/Carousel/Carousel.svelte @@ -205,7 +205,7 @@ } function offsetPage(animated) { - _duration = animated ? duration : 0 + _duration = animated ? duration : 0 // TODO: why not used offset = -currentPageIndex * pageWidth if (infinite) { if (currentPageIndex === 0) { @@ -230,7 +230,7 @@ function showPage(pageIndex, options) { const animated = get(options, 'animated', true) - const offsetDelayMs = get(options, 'offsetDelayMs', true) + const offsetDelayMs = get(options, 'offsetDelayMs', true) // TODO: fix default value safeChangePage(() => { store.moveToPage({ pageIndex, pagesCount }) setTimeout(() => {