cad-editor/src/app/view
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 3da81571a1 fix(ribbon): scrollable layer dropdown, stop mouse leak to viewport (#227)
The ribbon layer dropdown grew unbounded so a long layer list ran off the
bottom of the screen with no way to scroll. Cap the panel height and make
the list scrollable; short lists still shrink to fit.

While a dropdown was open, the 3D viewport beneath it kept tracking the
cursor over the panel's empty areas, and the OS cursor vanished there. In
iced 0.14 mouse_area/opaque only capture button presses, never CursorMoved,
so a higher stack layer can't swallow motion — gate it state-side instead:

- ignore viewport motion in on_viewport_move while ribbon.open_dropdown is set
- suppress the crosshair overlay's Hidden cursor (and crosshair draw) so the
  normal OS cursor shows over an open dropdown
- route all ribbon dropdown backdrops through a shared dropdown_backdrop()

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 00:45:23 +03:00
..
controls.rs refactor(viewport): migrate model-space tiling to iced pane_grid 2026-06-27 11:50:11 +03:00
mod.rs fix(ribbon): scrollable layer dropdown, stop mouse leak to viewport (#227) 2026-07-01 00:45:23 +03:00
modal.rs feat(save): warn before dropping AEC/Civil objects or overwriting on Save-As 2026-06-29 11:47:37 +03:00
overlay.rs refactor: split four oversized files into submodule trees 2026-06-26 22:51:29 +03:00
viewcube.rs refactor(viewcube): shrink cube 30%, compact controls, centre UCS picker 2026-06-27 01:56:17 +03:00