From 723e88dcbdda8694899f1e29f5856ef0165925ee Mon Sep 17 00:00:00 2001 From: tisachi Date: Tue, 20 Oct 2026 02:33:31 +0200 Subject: [PATCH] Web: wykres tla slownika startuje pozniej - gdy naglowek mija srodek widoku --- web/src/sections/Concepts.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/sections/Concepts.tsx b/web/src/sections/Concepts.tsx index b3bb4ee..c80ffd5 100644 --- a/web/src/sections/Concepts.tsx +++ b/web/src/sections/Concepts.tsx @@ -41,8 +41,8 @@ function ChartBackdrop() { const update = () => { const r = wrap.getBoundingClientRect(); const vh = window.innerHeight; - // p=0 gdy nagłówek sekcji wjeżdża, p=1 gdy jej dół opuszcza widok - const p = reduce ? 1 : Math.min(Math.max((vh * 0.9 - r.top) / (r.height * 0.9), 0), 1); + // p=0 gdy nagłówek mija środek widoku, p=1 przy końcu sekcji + const p = reduce ? 1 : Math.min(Math.max((vh * 0.4 - r.top) / (r.height * 0.85), 0), 1); line.style.strokeDashoffset = String(len * (1 - p)); clip.setAttribute('width', String(p * 1000)); };