MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: Expose zoom direction in ZoomFactorChanged event handler

Open
#4,511 0 comments 0 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Describe the feature/enhancement you need

When ZoomFactorChanged fires, I want to know if we got zoomed in or out.

Currently, I need to basically store the old zoom factor and compare to that each time to figure out which direction we went.

Electron's zoom-changed event passes a parameter of "in" or "out".

The scenario/use case where you would use this feature

want to know if we zoomed in or not

How important is this request to you?

Nice to have. There are other ways to tackle this, but having official API support would be beneficial.

Suggested implementation

could pass an enum indicating whether we got zoomed in or out:
enum ZoomDirection { In, Out }

What does your app do? Is there a pending deadline for this request?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.