Files
vectorcraft/crates
dotCooCoo 9f7501a8f6 Status bar: scrolling the view no longer lays out the zoom and artboard controls again
The status bar's Zoom field, Zoom Presets menu, Rotation menu and artboard
navigator were one memoized view keyed on the whole canvas view, so every
frame of a wheel pan changed the key and ran all four again. The Zoom field
reads only the view's zoom, and the status bar reads only the zoom of the
view the field commits.

- The Zoom field and Zoom Presets menu are their own memoized view, keyed on
  the zoom instead of the canvas view, so a pan replays them.
- The Rotation menu and the artboard navigator are a second memoized view, so
  a zoom change runs only the zoom controls.

The new test counts the runs of each view over ten pan frames and four zoom
changes; before the change the pan ran the navigation controls ten times.
2026-11-29 11:24:48 -08:00
..