feat: update Autoplay settings in Banner component to stop on mouse enter

This commit is contained in:
Ardeman 2025-03-24 13:25:15 +08:00
parent e81dad4ec5
commit f2f49de86b

View File

@ -11,6 +11,7 @@ export const Banner = () => {
const [emblaReference] = useEmblaCarousel({ loop: true }, [ const [emblaReference] = useEmblaCarousel({ loop: true }, [
Autoplay({ Autoplay({
stopOnInteraction: false, stopOnInteraction: false,
stopOnMouseEnter: true,
}), }),
]) ])
const fetcher = useFetcher() const fetcher = useFetcher()