Repository navigation
Add selectable ActiveX mouse navigation modes - #105
Conversation
Add Pan, Zoom In, and Zoom Out toolbar controls to the test host, preserving the selection when recreating the control. Center zoom-in clicks on their target, keep zoom-out clicks anchored, and cover both behaviors in tests and documentation.
Julian-MW
left a comment
There was a problem hiding this comment.
Automated review. Final decision is with the human reviewer.
Two findings that could not be attached to a diff line:
-
Severity: Major | Confidence: Medium — CI:
build-debug-x64 / buildfailed. It failed 42 seconds into the run (job 142214520291), while recentdevelopmentbranch builds are all green, so this is new with this PR. I could not retrieve the job log from the review environment (API returns 403), so I cannot tell whether it is a compile/test error or infrastructure (the fast failure and the still-running sibling debug jobs suggest setup or cache rather than a compile error — the changed code reads as compilable, though the new test's use ofmwg::MapView::kDefaultZoomFactorrelies on a transitive include; see line comment). AGENTS.md requires the Debug x64 build and non-interactive tests to pass before merge, so please confirm this job goes green (rerun if it is infra flakiness) before merging. -
Severity: Minor | Confidence: Medium — Documentation: the PR body says the new click behaviors are covered in documentation, and the sample README is updated, but
docs/mouse-interaction-design.md— the canonical interaction doc — still does not record that ZoomIn clicks now center on the clicked point while ZoomOut clicks stay anchored. Consider adding one sentence there so the behavior change is documented where future interaction work will look.
Otherwise: the zoom-then-recenter logic is correct (anchor computed pre-zoom, pan delta in map units, consistent with the existing EndMouseZoom rectangle-zoom pattern), the mode contract (Pan=0/ZoomIn=1/ZoomOut=2) is consistent between the C# host and mwg::activex::MouseMode, and test coverage is good at all three levels (controller-adjacent unit test, COM hosting test, C# UI automation including mode persistence across control recreation).
- Centralize click zoom recentering and honor ZoomOut anchoring. - Make ActiveX test dispatch and host mode diagnostics clearer. - Document the click zoom contract and own the MapView include. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Clarified instructions for zooming and panning on the map. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The WinForms toolbar selection/recreation path and real mouse/cursor behavior require interactive Windows validation outside CI, and no execution results were provided.
No open issues 🎉
1 resolved since last review
Review effort: Balanced

Add Pan, Zoom In, and Zoom Out toolbar controls to the test host, preserving the selection when recreating the control. Center zoom-in clicks on their target, keep zoom-out clicks anchored, and cover both behaviors in tests and documentation.