#69 : Code cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
<div class="main-container">
|
||||
<Carousel
|
||||
bind:this={carousel}
|
||||
particlesToShow={3}
|
||||
particlesToScroll={2}
|
||||
>
|
||||
{#each colors as { color, text } (color)}
|
||||
<div
|
||||
|
||||
@@ -144,7 +144,6 @@ export function applyParticleSizes({
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: think about case if particlesCount < particlesToShow and particlesCount < particlesToScroll
|
||||
export function getPartialPageSize({
|
||||
particlesToScroll,
|
||||
particlesToShow,
|
||||
|
||||
Reference in New Issue
Block a user