#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) {
// TODO: return if disabled
if (disabled) return
await changePage(
() => store.prev({
infinite,
@@ -382,7 +383,8 @@
)
}
async function showNextPage(options) {
// TODO: return if disabled
if (disabled) return
await changePage(
() => store.next({
infinite,

View File

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

View File

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