mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-28 17:41:14 +00:00
Dragging the Capacity Dock size slider tore the rail off the screen edge and left it floating there for as long as the drag lasted. Three things were wrong. The window moves from Rust and the page paints inside it, and a size change moved the window without telling the page. The page found out one event and one round trip later, so in between it drew a rail sized and offset for the window it used to have: on a right-docked rail that is a pill hanging a bubble's width off its own edge. The new size and the frame it belongs to now travel together in one event, and the page applies both in a single render. The rail is also pinned to the edge it is docked to, right or bottom, rather than positioned from the window's left and top. A docked rail's outer edge is the window's own edge, because the window is sized from the rail, so that pin holds through any resize the window is given underneath it. And the writes are serialized. `set_dock_prefs` is async, so the several writes a dragged slider starts were several tasks that could finish in any order and leave the rail at a size the slider was no longer showing. One at a time now, with a patch that is still waiting merged into the one ahead of it, which also costs the drag fewer round trips. |
||
|---|---|---|
| .. | ||
| dist | ||
| Scripts | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| DEVELOPMENT.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tokens.json | ||
| tsconfig.json | ||
| vite.config.ts | ||