feat: add webContents 'zoom-changed' event (#17747)

This commit is contained in:
Milan Burda 2019-05-14 08:40:40 +02:00 committed by Alexey Kuzmin
parent 23b0487e9b
commit 6609138959
4 changed files with 52 additions and 0 deletions

View file

@ -374,6 +374,14 @@ Emitted when the window enters a full-screen state triggered by HTML API.
Emitted when the window leaves a full-screen state triggered by HTML API.
#### Event: 'zoom-changed'
Returns:
* `event` Event
* `zoomDirection` String - Can be `in` or `out`.
Emitted when the user is requesting to change the zoom level using the mouse wheel.
#### Event: 'devtools-opened'
Emitted when DevTools is opened.