You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] The character shakes sideways for a moment each time the Character menu opens #2098
Each time the Character menu opens (click on the character), her figure jumps sideways for a very short moment, then settles. The jump lasts a frame or two, but it is easy to notice and distracting.
Steps to reproduce
Run the app on macOS.
Click the character to open the Character menu.
Watch her body while the pills come out.
Expected behavior
Her figure stays still while the window widens and the pills come out.
Actual behavior
Her figure moves left or right for about one or two frames, then returns to where it was. The owner saw this on 2026-11-24 in a verify bundle built from PR #2090 at f19f110e, with the floating pet window as in the shipped app.
The widening code path came from #2053 and is unchanged in #2090. #2090 only renamed the hold calls. So the defect is expected on main too. This is not yet checked on main.
Unverified hypothesis.createMenuFrame().widen (src/app/character-menu/character-menu-frame.ts) calls locomotion.widen(via). The travel frame (src/io/window/geometry/travel-frame.ts) runs these steps in order:
Resize and move the real window with set_frame_logical.
After that call resolves, set the renderer's view offset with renderer.setViewWindow.
Then the menu frame sets --yui-box-left and --yui-box-width on the root.
Between steps 1 and 2, the webview can draw one or more frames on the widened canvas without the offset. That would place her off her spot for those frames. The travel frame's header already names a related effect: a window move or resize flashes a stale frame while AppKit re-rasterizes the window. The same can happen in reverse when the menu closes and travel.end() shrinks the window.
First step of a fix: measure. Record her on-screen x for each frame around the open and the close, from rAF-paced samples of the canvas, or from a window-only screen recording at 60 fps. Find out which frame is off, and whether the cause is the order of the offset or the resize itself.
Environment
OS / version: macOS 26.2, built-in display at scale 2 (other monitors at scale 1 also attached)
pnpm tauri info summary: not collected
Browser only (pnpm dev) vs Tauri app (pnpm tauri dev): Tauri verify bundle (YUI_VERIFY_ON_TOP=1)
Measured (verify bundle from main 70bbe5d, macOS, built-in display at scale 2)
The hypothesis in the body is not the cause. The jump is the stale web-content bitmap that AppKit shows at the window's new origin for 1-3 display frames after setFrame:display: returns, when the window's left edge moves.
Method: in-webview marks (frame call, Rust setFrame begin/done, setViewWindow, first render at the new size) on one clock with a window-only 60 fps ScreenCaptureKit recording; her silhouette's left edge read per captured frame, DOM overlay hidden.
displaced in
displacement
duration
Open (24 runs)
22
-80 pt in 21 (the window's left-edge move), -53 in 1
1 frame ×10, 2 ×9, 3 ×2 (max 58 ms)
Close (24 runs)
20
+76..+80 in 11, +37..+50 in 9
0-1 frame in 16, 2 in 4
setFrame done → setViewWindow applied: median 0.2 ms (max 9.3 ms), before any webview paint. The displaced frames appear 13-32 ms after setFrame done, as a rigid copy of the old bitmap shifted by exactly the left-edge delta.
Offset applied before the frame call: still displaced in 5 of 6 opens. Forced synchronous render after the offset: 4 of 6. Reordering in JS does not help.
set_frame_logical alone, no menu: left edge moved by 80 → displaced in 4 of 5; left edge fixed, window grown to the right → clean in 5 of 5.
Rarer: one open showed two fully blank captured frames (not investigated; renderer.setSize clears the buffer and the 30 fps idle gate may skip the next render).
Not tested: a scale-1 display, a monitor seam, any fix design.
Fix directions follow from this: the pet window's left edge must not move while she shows (no resize to the left: a fixed wider window, growth to the right only, or a separate menu surface), or the window hides across the frame call (a visible blink, and JS has no "committed" signal).
Fixed by #2162: the Character menu draws in its own pre-created window, so opening it no longer resizes the pet window, and the character no longer shakes sideways. The owner confirmed it in pnpm tauri:dev on 2026-11-27.
Activity
yw0nam commentedon Nov 26, 2026
Measured (verify bundle from main 70bbe5d, macOS, built-in display at scale 2)
The hypothesis in the body is not the cause. The jump is the stale web-content bitmap that AppKit shows at the window's new origin for 1-3 display frames after
setFrame:display:returns, when the window's left edge moves.Method: in-webview marks (frame call, Rust
setFramebegin/done,setViewWindow, first render at the new size) on one clock with a window-only 60 fps ScreenCaptureKit recording; her silhouette's left edge read per captured frame, DOM overlay hidden.setFramedone →setViewWindowapplied: median 0.2 ms (max 9.3 ms), before any webview paint. The displaced frames appear 13-32 ms aftersetFramedone, as a rigid copy of the old bitmap shifted by exactly the left-edge delta.set_frame_logicalalone, no menu: left edge moved by 80 → displaced in 4 of 5; left edge fixed, window grown to the right → clean in 5 of 5.renderer.setSizeclears the buffer and the 30 fps idle gate may skip the next render).Not tested: a scale-1 display, a monitor seam, any fix design.
Fix directions follow from this: the pet window's left edge must not move while she shows (no resize to the left: a fixed wider window, growth to the right only, or a separate menu surface), or the window hides across the frame call (a visible blink, and JS has no "committed" signal).
yw0nam commentedon Nov 26, 2026
Fix decided in Character menu: its own overlay window or growing to the right; build in #2157.
yw0nam commentedon Nov 27, 2026
Fixed by #2162: the Character menu draws in its own pre-created window, so opening it no longer resizes the pet window, and the character no longer shakes sideways. The owner confirmed it in
pnpm tauri:devon 2026-11-27.