Skip to content

fix: keep popup content at full size while opening - #51

Merged
M4n0x merged 1 commit into
mainfrom
t3/fix-popup-scrollbar-flash
Oct 17, 2026
Merged

M4n0x merged 1 commit into
mainfrom
t3/fix-popup-scrollbar-flash

Conversation

@M4n0x

@M4n0x M4n0x commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Opening or closing an animated popup briefly shrinks its scroll viewport, which can flash a scrollbar even when the content fits.

Changes

  • Keep the content at its final size, anchored to the top of a clipping view, while the panel folds and fades.
  • Preserve scrolling for long content and the existing Reduce Motion behavior.
  • Document the reveal behavior in the README.

Testing

  • swift test --filter popup: all 4 tests passed, including regression cases for short and overflowing content that preserve the viewport and scroll position through opening and closing.
  • swift build -c release: passed.
  • Compared scratch builds of the base commit and this fix with a 4-second opening animation: the baseline shows a transient scrollbar; the fixed build does not. Long content still scrolls to the bottom, and Escape closes the popup. Both scratch processes were stopped.

The opening animation is slowed for inspection. Videos below show sampled captures of each opening sequence.

Stage Before After
During opening Before: scrollbar visible during opening After: no transient scrollbar during opening
Fully open Before: fully open popup After: fully open popup

Long popup scrolled to its last rows

Merging

One fix: commit; merge, rebase or squash preserves the patch-release intent.

Before opening sequence:

before-opening.mp4

After opening sequence:

after-opening.mp4

GPT-6.1-Sol via Codex in T3 Code.

@M4n0x
M4n0x requested a review from Seb-GRAF as a code owner October 16, 2026 19:32
@M4n0x
M4n0x merged commit 98c08ab into main Oct 17, 2026
4 checks passed
@M4n0x
M4n0x deleted the t3/fix-popup-scrollbar-flash branch October 17, 2026 07:50
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant