mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-24 16:30:46 +01:00
In the split layout the line between the views was fixed at the centre. It can now be dragged to resize both views live; the position is saved in UiState::split_ratio (serde default 0.5, so older states load). - Grab zone of 8 pt around the unchanged 2 pt line, claimed after the views so a press there never paints, orbits or pans. Resize cursor on hover and drag, no highlight. Left button only. - Either view can shrink to a 16 pt sliver. A view narrower than its 300 pt camera and view pickers hides them, and each view is clipped to its side of the divider. - Dragging keeps the 2D texture's on-screen size and offset from the view's centre (zoom and horizontal pan are compensated), stopping where that zoom would leave the 0.1-40 range the wheel uses. - The 2D view's edges sit on whole pixels and views render at the pixel size egui draws them at, so rounding can't nudge the texture's size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>