Skip to content

Commit

Permalink
fix(svelte): move navigation, pagination, scrollbar to the end of con…
Browse files Browse the repository at this point in the history
…tainer
  • Loading branch information
nolimits4web committed May 9, 2022
1 parent 2d3255f commit c8a4f67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/svelte/swiper.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@
{...restProps}
>
<slot name="container-start" />
<div class="swiper-wrapper">
<slot name="wrapper-start" />
<slot {virtualData} />
<slot name="wrapper-end" />
</div>
{#if needsNavigation(swiperParams)}
<div bind:this={prevEl} class="swiper-button-prev" />
<div bind:this={nextEl} class="swiper-button-next" />
Expand All @@ -171,10 +176,5 @@
{#if needsPagination(swiperParams)}
<div bind:this={paginationEl} class="swiper-pagination" />
{/if}
<div class="swiper-wrapper">
<slot name="wrapper-start" />
<slot {virtualData} />
<slot name="wrapper-end" />
</div>
<slot name="container-end" />
</div>

0 comments on commit c8a4f67

Please sign in to comment.