#69 : Code cleanup
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user