webframes | Animated images for the web | Animation library
kandi X-RAY | webframes Summary
kandi X-RAY | webframes Summary
Animated images for the web. Create full-color, SVG-based animated images for every browser. Import an image sequence in any of these formats: GIF, JPEG, PNG ... (soon SVG). Visit the svachon.com/webframes website for more information and examples.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of webframes
webframes Key Features
webframes Examples and Code Snippets
Community Discussions
Trending Discussions on webframes
QUESTION
I am building an electron app and want to disable zoom behaviour coming from keyboard shortcuts (cmd +/- on mac).
The electron docs state that zoom is disabled by default, but I think that only applies to pinch-to-zoom behavior:
NOTE: Visual zoom is disabled by default in Electron.
https://www.electronjs.org/docs/api/web-frame#webframesetvisualzoomlevellimitsminimumlevel-maximumlevel
Other sources suggest using webFrame.setVisualZoomLevelLimits(1, 1)
but that doesn't seem to do the trick.
Am I missing something? Ideally would like to avoid manually listening on those specific keypress combinations in javascript.
...ANSWER
Answered 2021-Apr-26 at 00:48Figured it out. The CMD +/- shortcuts get triggered because the application Menu by default includes MenuItems that have the roles zoomIn
and zoomOut
. If you don't want those behaviors in your application, you need to manually configure your menu.
There is an example of how to do that in the Electron docs, you just need to omit the 'zoomIn', 'zoomOut' and 'resetZoom' menuitems. https://www.electronjs.org/docs/api/menu#examples
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webframes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page