Skip to content

Morphing between popups stutters, flickers and starts late #251

Closed

Description

@Seb-GRAF

What happens

With bar.morphPopups on, switching from one widget's popup to another doesn't look like one smooth movement:

  • Nothing moves for about 150 ms after the click.
  • The box moves in uneven steps: 33 ms or more between frames in a 60 fps recording, with one 66 ms stall.
  • In the version from feat: morph the open popup into the next one when switching widgets #204, the first frame was already about a quarter of the way through, and the old popup showed behind the box for a frame or two.
  • Both popups' text sits in the box at similar opacity mid-way, which reads as flicker.

Steps to reproduce

  1. Turn on Settings → Theme → Animation → Morph between popups ("bar": { "morphPopups": true }), with motion snappy.
  2. Open a popup with a lot of content, such as the system monitor's.
  3. Click another widget that has a popup.

Expected

The box starts moving on the next frame and moves at the display's frame rate, whatever else the app is doing.

Environment

main since #204 (v0.6.0 betas), macOS 26.6.2, glass off, opaque popup fill.

Evidence

Frame-by-frame reading of two screen recordings from the developer. In both, frames repeat during the morph and are followed by larger jumps.

Diagnosis

PopupMorphView in Sources/StableBar/WidgetPopup.swift moves and resizes the box with a SwiftUI animation, so every frame waits on the main thread. Opening a morph builds three popup views before the first frame: the new popup and two background-free copies in the morph window. The animation clock starts in onAppear, before that work reaches the screen.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 23, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.6.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions