Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(component): prevent app zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
glebez authored and lkuechler committed Dec 22, 2017
1 parent 3a05ff9 commit bbf7e89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/component/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Button, { Order } from '../lsg/patterns/button';
import { Chrome } from './container/chrome';
import { colors } from '../lsg/patterns/colors';
import Copy, { Size as CopySize } from '../lsg/patterns/copy';
import { remote, WebviewTag } from 'electron';
import { remote, webFrame, WebviewTag } from 'electron';
import ElementPane from '../lsg/patterns/panes/element-pane';
import { ElementList } from './container/element_list';
import * as FileExtraUtils from 'fs-extra';
Expand Down Expand Up @@ -32,6 +32,10 @@ import Space, { Size as SpaceSize } from '../lsg/patterns/space';
import SplashScreen from '../lsg/patterns/splash-screen';
import { Store } from '../store/store';

// prevent app zooming
webFrame.setVisualZoomLevelLimits(1, 1);
webFrame.setLayoutZoomLevelLimits(0, 0);

globalStyles();

interface AppProps {
Expand Down

0 comments on commit bbf7e89

Please sign in to comment.