Skip to content

feat: relocate scrollbar to navigation, add scroll-UI idle fade#14

Merged
bertpl merged 2 commits intomainfrom
feat/0-1-4-03-scrollbar-auto-hide
May 7, 2026
Merged

feat: relocate scrollbar to navigation, add scroll-UI idle fade#14
bertpl merged 2 commits intomainfrom
feat/0-1-4-03-scrollbar-auto-hide

Conversation

@bertpl
Copy link
Copy Markdown
Owner

@bertpl bertpl commented May 7, 2026

Summary

  • Moved scrollbar from per-slide containers to .navigation, wrapped with snap control in a shared .scroll-ui div.
  • Idle fade on the wrapper: 1s delay, 0.5s fade-out, instant fade-in on any scroll interaction, hover, or snap control use.
  • CSS opacity on the wrapper multiplies through to all children — no duplicate opacity management.
  • JS ScrollManager and SnapManager refactored to reference the single global scrollbar element instead of querying per-container.

Test plan

  • 646 Python + 98 JS tests pass
  • Built worked example — scrollbar and snap control visible on scrollable slides
  • Idle fade works: stops scrolling → 1s → fade out; scroll again → instant fade in
  • Hover over scroll UI resets the idle timer
  • Deck view: no scrollbar visible
  • Slide changes reset the idle timer

🤖 Generated with Claude Code

bertpl and others added 2 commits May 7, 2026 08:35
Move scrollbar from per-slide containers to a shared .scroll-ui wrapper in .navigation alongside the snap control. Idle fade (1s delay, 0.5s fade-out, instant fade-in) applied on the wrapper so all children inherit a single multiplicative opacity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bertpl bertpl merged commit 2131929 into main May 7, 2026
9 checks passed
@bertpl bertpl deleted the feat/0-1-4-03-scrollbar-auto-hide branch May 7, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant