diff --git a/src/components/Carousel.tsx b/src/components/Carousel.tsx index 86f29bd..4e81856 100644 --- a/src/components/Carousel.tsx +++ b/src/components/Carousel.tsx @@ -34,13 +34,6 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => { return false; }; - // useEffect(() => { - // if (carousel !== null && carousel.current !== null) { - // (carousel.current as any).scrollLeft = - // (carousel.current as any).offsetWidth * currentIndex; - // } - // }, [currentIndex]); - function getClassnames(picture: Picture, index: number): string { switch (index) { case currentIndex: // current @@ -54,13 +47,6 @@ const Carousel = ({ pictures }: { pictures: Picture[] }) => { } } - // useEffect(() => { - // maxScrollWidth.current = carousel.current - // ? (carousel.current as any).scrollWidth - - // (carousel.current as any).offsetWidth - // : 0; - // }, []); - return (