codeburn/windows
iamtoruk 929bca8019 fix(windows): the rail keeps its edge while the size changes
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.
2026-09-02 01:29:53 -07:00
..
dist windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
Scripts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
src fix(windows): the rail keeps its edge while the size changes 2026-09-02 01:29:53 -07:00
src-tauri fix(windows): the rail keeps its edge while the size changes 2026-09-02 01:29:53 -07:00
.gitignore windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
DEVELOPMENT.md docs(windows): the update checker in DEVELOPMENT.md 2026-09-01 22:33:32 -07:00
index.html windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
package-lock.json chore: release 0.9.23 2026-08-29 01:22:46 -07:00
package.json chore: release 0.9.23 2026-08-29 01:22:46 -07:00
tokens.json windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tsconfig.json windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
vite.config.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00