fix: remove Carousel clickAllowed helper since it's now included

This commit is contained in:
2024-04-10 14:21:52 +02:00
parent e157746518
commit f525bbaddf

View File

@@ -49,8 +49,6 @@
/** Go to prev or next slide depending on direction */
const handleArrowClick = () => {
if (!carousel.clickAllowed()) return
// Define direction
if (isFirstSlide) {
arrowDirection = 'next'
@@ -90,6 +88,7 @@
on:mousemove={handleArrowMove}
on:click={handleArrowClick}
on:keydown
role="presentation"
>
<div class="carousel__slides">
{#each slides as { id, alt }}