Skip to content

[Bug]: setVisualZoomLevelLimits not working in 27.0.1 version #40651

@CosbyBs86

Description

@CosbyBs86

Preflight Checklist

Electron Version

27.0.1

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

x64

Last Known Working Electron version

NA

Expected Behavior

I added on my rendere.js file the following statement:
require('electron').webFrame.setVisualZoomLevelLimits(1, 3)

When the web page is loaded in the electron form the CTRL + mousewheel +/- and The CTRL + +/- keys should zoom in/out the page.

Actual Behavior

I added on my rendere.js file the following statement:
require('electron').webFrame.setVisualZoomLevelLimits(1, 3)

When the web page is loaded in the electron form the CTRL + mousewheel +/- does not work. The CTRL + +/- keys don't work as well.

Testcase Gist URL

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions