mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-09 14:12:13 -05:00
Increase zoom button increment
This commit is contained in:
parent
9ac6b0b048
commit
62fad01607
1 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,9 @@ import bindAll from 'lodash.bindall';
|
||||||
import paper from '@scratch/paper';
|
import paper from '@scratch/paper';
|
||||||
|
|
||||||
class PaintEditor extends React.Component {
|
class PaintEditor extends React.Component {
|
||||||
|
static get ZOOM_INCREMENT () {
|
||||||
|
return 0.5;
|
||||||
|
}
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
super(props);
|
super(props);
|
||||||
bindAll(this, [
|
bindAll(this, [
|
||||||
|
@ -102,10 +105,10 @@ class PaintEditor extends React.Component {
|
||||||
return shouldShowRedo(this.props.undoState);
|
return shouldShowRedo(this.props.undoState);
|
||||||
}
|
}
|
||||||
handleZoomIn () {
|
handleZoomIn () {
|
||||||
zoomOnSelection(0.25);
|
zoomOnSelection(PaintEditor.ZOOM_INCREMENT);
|
||||||
}
|
}
|
||||||
handleZoomOut () {
|
handleZoomOut () {
|
||||||
zoomOnSelection(-0.25);
|
zoomOnSelection(-PaintEditor.ZOOM_INCREMENT);
|
||||||
}
|
}
|
||||||
handleZoomReset () {
|
handleZoomReset () {
|
||||||
resetZoom();
|
resetZoom();
|
||||||
|
|
Loading…
Reference in a new issue