From 62fad0160736f159f7ddf1c8e16a9f691d8064a5 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 27 Oct 2017 10:05:21 -0400 Subject: [PATCH] Increase zoom button increment --- src/containers/paint-editor.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/containers/paint-editor.jsx b/src/containers/paint-editor.jsx index 24ddda7a..9156b6e6 100644 --- a/src/containers/paint-editor.jsx +++ b/src/containers/paint-editor.jsx @@ -19,6 +19,9 @@ import bindAll from 'lodash.bindall'; import paper from '@scratch/paper'; class PaintEditor extends React.Component { + static get ZOOM_INCREMENT () { + return 0.5; + } constructor (props) { super(props); bindAll(this, [ @@ -102,10 +105,10 @@ class PaintEditor extends React.Component { return shouldShowRedo(this.props.undoState); } handleZoomIn () { - zoomOnSelection(0.25); + zoomOnSelection(PaintEditor.ZOOM_INCREMENT); } handleZoomOut () { - zoomOnSelection(-0.25); + zoomOnSelection(-PaintEditor.ZOOM_INCREMENT); } handleZoomReset () { resetZoom();