mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-29 02:39:13 +00:00
A rail dragged from the right edge to the top stayed a tall pill all the way there and only became a wide one after the drop, so the drag never showed what the drop would do. It turns while it is being carried now, as the mac's dragChanged does: as soon as the edge in reach runs the other way, the rail is laid out for that orientation and the window is resized under the pointer. The grip is what makes that survivable. The drag anchor was the cursor's offset from the window origin, which means nothing once the rail changes shape; it is the fraction of the rail the pointer grabbed now, so a 53 by 112 pill that becomes 74 by 64 hangs from the same place in itself. That is the mac's pointerAnchoredDragFrame, which applies the fractions from the start frame to whatever size the rail currently has. The page is handed the new frame with the drag event, since a rail that has turned lives in a different window and paints a different shape. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| tauri.conf.json | ||