From e8ebeafdbec1b66ebce5a079c3aea8eaa1a05a42 Mon Sep 17 00:00:00 2001 From: Claas Date: Sun, 23 Jun 2024 16:56:09 +0200 Subject: [PATCH] Put it in order Remove debounce for scroll stop --- src/routes/journey.tsx | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/routes/journey.tsx b/src/routes/journey.tsx index f54fdcd..60b5aae 100644 --- a/src/routes/journey.tsx +++ b/src/routes/journey.tsx @@ -433,48 +433,46 @@ export default function Journeys() { if (otherRow === undefined) return; otherRow.scrollLeft = target.scrollLeft; - // Debounce - clearTimeout(timeoutId); - timeoutId = setTimeout(() => { - setIsScrolling(false); - }, 100); } return ( - <> +
+

Starting station

{" "}
setIsScrolling(false)} > {(_, index) => (
Content {index()}
)}
+
Important Station
{(_, index) => (
Content {index()}
)}
- +
); } -- knotmirror 0.0.1