From 68ccddd171e9dfd3e3339aed83754c24c9a5b795 Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Thu, 4 Apr 2024 10:54:56 -0400 Subject: [PATCH] Decrease scroll amount using buttons --- src/pages/Discover.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Discover.tsx b/src/pages/Discover.tsx index 222a4eaf..519def81 100644 --- a/src/pages/Discover.tsx +++ b/src/pages/Discover.tsx @@ -163,7 +163,7 @@ export function Discover() { if (movieElements.length > 0) { const movieWidth = movieElements[0].offsetWidth; const visibleMovies = Math.floor(carousel.offsetWidth / movieWidth); - const scrollAmount = movieWidth * visibleMovies; + const scrollAmount = movieWidth * visibleMovies * 0.69; // Silly number :3 if (direction === "left") { if (carousel.scrollLeft <= 5) { carousel.scrollBy({