-
Notifications
You must be signed in to change notification settings - Fork 16.2k
feat: add webContents 'zoom-changed' event #17747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bdb4ce4
to
87f170d
Compare
248799f
to
31c019b
Compare
31c019b
to
280bdad
Compare
280bdad
to
64b278c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs documentation :)
64b278c
to
a6e6c63
Compare
a6e6c63
to
fd9700c
Compare
fd9700c
to
6c13cd0
Compare
…with the mouse wheel. Should only go in when Electron has webContents.sendInputContent fixed so that it properly creates a WebMouseWheelEvent.
41b522d
to
9de5ae1
Compare
@MarshallOfSound are you ok with the current state of the PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still not the hugest fan of the API but better than before and I don't think given the API we're working with we can do much better
Release Notes Persisted
|
What about zoom changed by menuItem with role |
Description of Change
Emit
zoom-changed
event when the user is trying to zoom in / out using the mouse wheel on Windows. This is the only way the Electron app will be able to handle these events when the focus is inside a (x-origin) iframe.Checklist
npm test
passesRelease Notes
Notes: Added
zoom-changed
event towebContents
, which is emitted when the user is trying to zoom in / out using the mouse wheel on Windows, even if the focus is inside an (x-origin) iframe.