Audit finding
MagnifierOverlay combines:
- WinForms window/resource creation;
- Magnification API initialization;
- render/update timer;
- geometry resolution;
- target visibility/foreground policy;
- native-menu association policy;
- z-order policy;
- transition grace state;
- exclusion filters;
- transient failure handling.
Runtime timing values are distributed across MagnifierOverlay, ForegroundWindowTracker, Win32MenuWindowTracker and SightAdaptContext (33, 75, 125, 5000 ms).
This makes render mechanics harder to test and gives timing relationships no single source of truth.
Target state
Extract:
- a target-availability strategy for foreground windows versus transient popups;
- a render/update component that performs positioning/source updates;
- a central immutable runtime timing policy used by trackers, renderer and fault recovery.
Keep the Form responsible only for the native window/control lifetime and delegation.
Acceptance criteria
Audit finding
MagnifierOverlaycombines:Runtime timing values are distributed across
MagnifierOverlay,ForegroundWindowTracker,Win32MenuWindowTrackerandSightAdaptContext(33,75,125,5000ms).This makes render mechanics harder to test and gives timing relationships no single source of truth.
Target state
Extract:
Keep the Form responsible only for the native window/control lifetime and delegation.
Acceptance criteria