mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
Hovering used to move and resize the dock window, and WebView2 presents one stale frame at every window change, which read as the rail drifting and glitching. One transparent window is now sized once per placement for the fully expanded rail plus the bubble's reach and never moves on hover. A 60 Hz cursor poll, the counterpart of the mac's global event monitor, makes the window click-through everywhere but the painted shapes, synthesizes hover for the page, and drives dragging. Drag follows CapacityDockController: the page owns the 3 px threshold and passes the press point, Rust keeps the rail under the pointer, morphs the flare away as it leaves an edge, and on release snaps to any edge within 44 px or leaves the rail floating, then hands the page the old rail rect so it glides into place with the mac's attach and detach curves. Placement (docked edge, orientation, normalized offsets) persists in windows-dock.json. Top and bottom give a horizontal rail with the bubble below or above; a floating rail keeps its orientation and puts the bubble where there is room. The context menu gains Dock to Edge with all four edges. The layout stays a pure function with unit tests, and every window metric stays a whole pixel. windows-sys gains one feature flag for the cursor and button reads; no versions change. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||