fix: remove Carousel clickAllowed helper since it's now included
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user