HtmlPanel: Ctrl+wheel zoom and middle-button pan#247
Open
kushanp wants to merge 3 commits into
Open
Conversation
Keep the Core package reference aligned with the latest .NET 10 servicing release.
Implement browser-style zoom with anchor-to-cursor on Ctrl+MouseWheel, optional Ctrl+/−/0 shortcuts, and middle-button drag panning. Scale paint via Graphics transform and force GDI+ text when zoomed so glyphs scale (GDI TextOut ignores ScaleTransform).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds browser-style zoom and middle-button pan to
HtmlPanel.Features
Graphicsscale transform and forces GDI+ text so glyphs scale (GDITextOutignoresScaleTransform)Depends on
This branch is stacked on #246 (
.NET 10modernization).Please review/merge #246 first. After that, this PR can be rebased onto
masterif needed.Test plan
dotnet build -c ReleaseHtmlRenderer.WinForms on this branchScope
WinForms
HtmlPanel(+ smallGraphicsAdaptersupport). No Core TFM changes beyond #246.