Skip to content

Add selectable ActiveX mouse navigation modes - #105

Open
pmeems wants to merge 3 commits into
developmentfrom
feature/activex-testhost-mouse-modes
Open

pmeems wants to merge 3 commits into
developmentfrom
feature/activex-testhost-mouse-modes

Conversation

@pmeems

@pmeems pmeems commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

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.

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.
Copilot AI balanced review requested due to automatic review settings November 30, 2026 21:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@Julian-MW Julian-MW left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review. Final decision is with the human reviewer.

Two findings that could not be attached to a diff line:

  1. Severity: Major | Confidence: Medium — CI: build-debug-x64 / build failed. It failed 42 seconds into the run (job 142214520291), while recent development branch 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 of mwg::MapView::kDefaultZoomFactor relies 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.

  2. 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>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 07:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The README’s Shift-drag zoom instruction needs to specify Pan mode and describe rectangle dragging in Zoom In mode, since dragging in Zoom Out mode does nothing.

1 open issue

Review effort: Balanced

Clarified instructions for zooming and panning on the map.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 08:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@pmeems
pmeems enabled auto-merge (squash) December 2, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants