fix(report): instant nav jump + scroll-position scrollspy (#958) #2105
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2105
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/report-nav-jump-scrollspy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up к #2104. Скриншот-верификация с интеракциями на проде вскрыла два бага навигации (прод-замеры через
javascript_tool):window.scrollTo({behavior:"smooth"})— no-op на этой странице: подтверждено замером ({top:8000, behavior:"smooth"}→ scrollY остался 0;{behavior:"auto"}→ сработал). Тяжёлый отчёт (Leaflet-карты, async §6 ~20-40с, lazy-чарты) даёт непрерывный reflow, отменяющий smooth-анимацию. Это и есть исходная жалоба «навигация не прыгает» — оригинальный код тоже былscrollIntoView({behavior:"smooth"}). →behavior:"auto"(instant).rootMargin -72px/-60%) пуста для высокой/нижней секции →if(next)держал старое значение (на §7 активной оставалась «1. Информация», замер: scrollY 12848 → activeNav «1. Информация»). → scroll-position подход (rAF-throttled): активна последняя секция, чья верхушка прошла offset-линию; на низу страницы форсим последнюю секцию. Детерминированно, никогда не «пусто».Test plan
tsc --noEmitclean,next lintclean, prettierRefs #958.