Commit 1bab0846 authored by carlosperate's avatar carlosperate

Prevent pinch-to-zoom in OS X desktop app.

parent de2d16db
......@@ -56,7 +56,12 @@ Ardublockly.hideSideMenuButton = function() {
window.addEventListener('load', function load(event) {
window.removeEventListener('load', load, false);
if (Ardublockly.isRunningElectron()) {
// Edit the page layout for better appearance on desktop
Ardublockly.containerFullWidth();
Ardublockly.hideSideMenuButton();
// Prevent browser zoom changes like pinch-to-zoom
var webFrame = require('web-frame');
webFrame.setZoomLevelLimits(1, 1);
}
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment