Skip to content

Commit

Permalink
docs: note that visual zoom is disabled by default (#16130)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored and codebytere committed Dec 19, 2018
1 parent 5cc4a30 commit 03f8764
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api/web-contents.md
Expand Up @@ -948,6 +948,12 @@ Sends a request to get current zoom level, the `callback` will be called with

Sets the maximum and minimum pinch-to-zoom level.

> **NOTE**: Visual zoom is disabled by default in Electron. To re-enable it, call:
>
> ```js
> contents.setVisualZoomLevelLimits(1, 3)
> ```
#### `contents.setLayoutZoomLevelLimits(minimumLevel, maximumLevel)`

* `minimumLevel` Number
Expand Down
6 changes: 6 additions & 0 deletions docs/api/web-frame.md
Expand Up @@ -50,6 +50,12 @@ Returns `Number` - The current zoom level.

Sets the maximum and minimum pinch-to-zoom level.

> **NOTE**: Visual zoom is disabled by default in Electron. To re-enable it, call:
>
> ```js
> webFrame.setVisualZoomLevelLimits(1, 3)
> ```
### `webFrame.setLayoutZoomLevelLimits(minimumLevel, maximumLevel)`

* `minimumLevel` Number
Expand Down

0 comments on commit 03f8764

Please sign in to comment.