MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2

Home Page:https://aka.ms/webview2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: Expose zoom direction in ZoomFactorChanged event handler

pushkin- opened this issue · comments

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