diff --git a/src/components/RoadmapRoute.astro b/src/components/RoadmapRoute.astro index 3bdb2f6..493d452 100644 --- a/src/components/RoadmapRoute.astro +++ b/src/components/RoadmapRoute.astro @@ -52,23 +52,6 @@ const initialShippingX = lastShippingIndex >= 0 ? layout.itemX[lastShippingIndex ---
- -
-

The route

-
- - -
-
- -
- Shipping - In beta - Exploring - Considering -
+ - +
    {items.map((item, i) => (
  1. @@ -174,8 +151,6 @@ const initialShippingX = lastShippingIndex >= 0 ? layout.itemX[lastShippingIndex const svg = section.querySelector('#rr-path-svg'); const pathD = section.querySelector('#rr-path-d'); const milestones = Array.from(section.querySelectorAll('.rr-milestone')); - const prev = section.querySelector('#rr-prev'); - const next = section.querySelector('#rr-next'); const fadeL = section.querySelector('#rr-fade-l'); const fadeR = section.querySelector('#rr-fade-r'); if (!scroll || !track || !svg) return; @@ -219,16 +194,12 @@ const initialShippingX = lastShippingIndex >= 0 ? layout.itemX[lastShippingIndex milestones.forEach((m, i) => { m.style.left = `${itemX[i]}px`; }); } - const step = () => scroll!.clientWidth * 0.72; - prev?.addEventListener('click', () => scroll!.scrollBy({ left: -step(), behavior: 'smooth' })); - next?.addEventListener('click', () => scroll!.scrollBy({ left: step(), behavior: 'smooth' })); - + /* Arrow handler + edge-state updates are rewritten in the next commit + (drag + wheel + glide). For now only the fades update on scroll. */ function updateNav() { const max = scroll!.scrollWidth - scroll!.clientWidth; const atStart = scroll!.scrollLeft <= 2; const atEnd = scroll!.scrollLeft >= max - 2; - if (prev) prev.disabled = atStart; - if (next) next.disabled = atEnd; if (fadeL) fadeL.style.opacity = atStart ? '0' : '1'; if (fadeR) fadeR.style.opacity = atEnd ? '0' : '1'; } @@ -259,45 +230,6 @@ const initialShippingX = lastShippingIndex >= 0 ? layout.itemX[lastShippingIndex