Pad/internal/ui
Greg Pomerantz 21b4df59a3 Fix event flow: ConfigEvent sets size, FrameEvent sets scale only
- ConfigEvent: ONLY from app.ConfigEvent, sets width/height in State
- FrameEvent: gets scale from gtx.Metric.PxPerDp, sends ScaleEvent only if changed
- ScaleEvent: updates State.Scale
- Renderer reads windowW/windowH from State (SetWindowSize), not gtx.Constraints
- Renderer reads scale from State (SetScale), not gtx.Metric.PxPerDp
- main.go: ConfigEvent calls SetWindowSize, FrameEvent calls SetScale
2026-05-09 20:26:10 -04:00
..
element.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00
layout.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00
render.go Fix event flow: ConfigEvent sets size, FrameEvent sets scale only 2026-05-09 20:26:10 -04:00
unit.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00