diff --git a/src/components/scrolling-carousel/index.tsx b/src/components/scrolling-carousel/index.tsx index 1f8d839..22c522d 100644 --- a/src/components/scrolling-carousel/index.tsx +++ b/src/components/scrolling-carousel/index.tsx @@ -109,7 +109,7 @@ export const ScrollingCarousel: FunctionComponent = ({ const smoothHorizontalScroll = (time: number, amount: number, start: number) => { let curTime = 0; for (let scrollCounter = 0; curTime <= time; scrollCounter++) { - window.setTimeout( + setTimeout( smoothHorizontalScrollBehavior, curTime, (scrollCounter * amount) / 100 + start,