mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
Switching the dock on made a rail appear where there had been nothing, and switching it off made one vanish. Neither reads as a thing arriving or leaving, because neither has any direction: the window is created, painted, destroyed. Now the rail comes out of the edge it is docked to. It starts tucked its whole cross width behind that edge, so nothing of it shows, and the transform is released on the frame after the first layout, which is the first moment there is an edge and a size to be tucked behind. A floating rail has no edge to hide behind, so it fades and scales from 0.92 instead. Both use dockAttach, the same 280 ms curve the drag glide already settles on. Leaving is the same in reverse, and it needs a handshake because Rust owns the window: hide asks the page to retract, the bubble goes first, the rail slides back over dockDetach, and the page then calls dock_close. Rust keeps a 400 ms timer so a page that never answers costs a fifth of a second rather than a rail that will not go away, and a generation counter means switching the dock off and straight back on cannot have the old timer take the new window. Nothing here moves a window. It is a transform on the rail alone, so every window metric stays the whole pixel it was, and prefers-reduced-motion skips both plays: the rail is simply placed, and the dismiss closes without waiting. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||