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