Show places overlay: text ghosting crossfade and dim snap (narrow desktop window) #486

Closed
opened 2026-10-16 10:22:29 +00:00 by kayg · 2 comments
Owner

kayg (2026-10-16), prod calternal.cloud, desktop browser with a narrow window (list + note, Places hidden). Pressing Ctrl+\ (Show places) opens Places as an overlay over the list.

Video frames at 30 fps (scratchpad flicker-open.png / flicker-close.png, video in the uploads) show:

  • For 2–3 frames the Places panel and the list are BOTH semi-transparent, so their text overlaps ("Pinned" over "October Today", "Calternal" over "Journal 668"). That is a crossfade of two translucent layers.
  • The page dim snaps on and off.

Expected: Places slides or springs in place as one solid glass surface. Its glass never goes half-transparent over text, the list underneath dims smoothly, and the reverse happens on close. Keyboard-triggered actions should not animate at all (standing rule), which Ctrl+\ is.

kayg (2026-10-16), prod calternal.cloud, desktop browser with a narrow window (list + note, Places hidden). Pressing Ctrl+\ (Show places) opens Places as an overlay over the list. Video frames at 30 fps (scratchpad flicker-open.png / flicker-close.png, video in the uploads) show: - For 2–3 frames the Places panel and the list are BOTH semi-transparent, so their text overlaps ("Pinned" over "October Today", "Calternal" over "Journal 668"). That is a crossfade of two translucent layers. - The page dim snaps on and off. Expected: Places slides or springs in place as one solid glass surface. Its glass never goes half-transparent over text, the list underneath dims smoothly, and the reverse happens on close. Keyboard-triggered actions should not animate at all (standing rule), which Ctrl+\ is.
Author
Owner

PR #503 (issue/486-places-ghost, into dev; not merged).

Cause. Below 1280 px Places is a glass drawer over the list. Its pointer-open transition faded opacity on the glass (and ramped it 1.6x), so for a few frames translucent glass sat over the list and both texts showed. The dim ran on its own time and curve. The existing keys-no-motion test passed because it only runs at 1440 px (wide layout, no drawer). In my narrow-window test, Ctrl+\ was already instant (duration 0); the ghost is the pointer path (the Show places button).

Fix. Drawer: translate (small spring on open) plus clip-path reveal, never opacity. Dim: same duration and curve as the panel. Keys: still duration 0.

Tests. New in glass.spec: sampled each frame, the drawer's glass and the list are never below opacity 1 while opening and closing, and the dim eases (fails on dev with the drawer at opacity 0, passes here). New in keys-no-motion: Ctrl+\ at 1100 px moves nothing, drawer there or gone at once.

Runs (--no-deps; glass, keys-no-motion, shortcuts, tabs, bar-, phone-):

  • chromium-1440, webkit-1440, chromium-390 (429 passed), webkit-390 (429 passed): all green. The drawer test is skipped on the 390 projects. The two 1440 runs of the full list passed everything but my first dim assertion, which I then fixed. The drawer test then passed 3 times in a row on both 1440 projects.
  • svelte-check: 0 errors, 12 warnings (all existing).

Frame strips (chromium-1440, 1100 px window, 30 fps, 50 frames, left 560 px). Playwright's video is too slow to catch the 2-3 ghost frames of the old build, so the strip is weak proof for "before"; the per-frame opacity assertion is the real proof. After shows the drawer clipped open, solid in every frame.

PR #503 (`issue/486-places-ghost`, into dev; not merged). **Cause.** Below 1280 px Places is a glass drawer over the list. Its pointer-open transition faded `opacity` on the glass (and ramped it 1.6x), so for a few frames translucent glass sat over the list and both texts showed. The dim ran on its own time and curve. The existing `keys-no-motion` test passed because it only runs at 1440 px (wide layout, no drawer). In my narrow-window test, Ctrl+\ was already instant (duration 0); the ghost is the pointer path (the Show places button). **Fix.** Drawer: translate (small spring on open) plus `clip-path` reveal, never opacity. Dim: same duration and curve as the panel. Keys: still duration 0. **Tests.** New in `glass.spec`: sampled each frame, the drawer's glass and the list are never below opacity 1 while opening and closing, and the dim eases (fails on dev with the drawer at opacity 0, passes here). New in `keys-no-motion`: Ctrl+\ at 1100 px moves nothing, drawer there or gone at once. **Runs** (`--no-deps`; glass, keys-no-motion, shortcuts, tabs, bar-*, phone-*): - chromium-1440, webkit-1440, chromium-390 (429 passed), webkit-390 (429 passed): all green. The drawer test is skipped on the 390 projects. The two 1440 runs of the full list passed everything but my first dim assertion, which I then fixed. The drawer test then passed 3 times in a row on both 1440 projects. - svelte-check: 0 errors, 12 warnings (all existing). **Frame strips** (chromium-1440, 1100 px window, 30 fps, 50 frames, left 560 px). Playwright's video is too slow to catch the 2-3 ghost frames of the old build, so the strip is weak proof for "before"; the per-frame opacity assertion is the real proof. After shows the drawer clipped open, solid in every frame.
Author
Owner

Closing during the 26 Oct handover cleanup: The places ghosting fix landed in dev (PRs #503, #520).

Closing during the 26 Oct handover cleanup: The places ghosting fix landed in dev (PRs #503, #520).
kayg closed this issue 2026-10-26 08:46:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#486
No description provided.