mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix : force zoomMultiplier to 1 on using +/-
This commit is contained in:
parent
f1b6ea4ae3
commit
cdef28c60f
@ -63,8 +63,8 @@
|
|||||||
$.subscribe(Events.FRAME_SIZE_CHANGED, $.proxy(this.onFrameSizeChanged_, this));
|
$.subscribe(Events.FRAME_SIZE_CHANGED, $.proxy(this.onFrameSizeChanged_, this));
|
||||||
|
|
||||||
pskl.app.shortcutService.addShortcut('0', this.resetZoom_.bind(this));
|
pskl.app.shortcutService.addShortcut('0', this.resetZoom_.bind(this));
|
||||||
pskl.app.shortcutService.addShortcut('+', this.increaseZoom_.bind(this));
|
pskl.app.shortcutService.addShortcut('+', this.increaseZoom_.bind(this, 1));
|
||||||
pskl.app.shortcutService.addShortcut('-', this.decreaseZoom_.bind(this));
|
pskl.app.shortcutService.addShortcut('-', this.decreaseZoom_.bind(this, 1));
|
||||||
|
|
||||||
window.setTimeout(this.afterWindowResize_.bind(this), 100);
|
window.setTimeout(this.afterWindowResize_.bind(this), 100);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user