#69 : Code cleanup

This commit is contained in:
Vadim
2021-09-17 11:09:00 +03:00
parent 2b2eca4cdd
commit f6e91fd589
3 changed files with 6 additions and 3 deletions

View File

@@ -367,7 +367,8 @@
) )
} }
async function showPrevPage(options) { async function showPrevPage(options) {
// TODO: return if disabled if (disabled) return
await changePage( await changePage(
() => store.prev({ () => store.prev({
infinite, infinite,
@@ -382,7 +383,8 @@
) )
} }
async function showNextPage(options) { async function showNextPage(options) {
// TODO: return if disabled if (disabled) return
await changePage( await changePage(
() => store.next({ () => store.next({
infinite, infinite,

View File

@@ -40,6 +40,8 @@
<div class="main-container"> <div class="main-container">
<Carousel <Carousel
bind:this={carousel} bind:this={carousel}
particlesToShow={3}
particlesToScroll={2}
> >
{#each colors as { color, text } (color)} {#each colors as { color, text } (color)}
<div <div

View File

@@ -144,7 +144,6 @@ export function applyParticleSizes({
} }
} }
// TODO: think about case if particlesCount < particlesToShow and particlesCount < particlesToScroll
export function getPartialPageSize({ export function getPartialPageSize({
particlesToScroll, particlesToScroll,
particlesToShow, particlesToShow,