Fix : force zoomMultiplier to 1 on using +/-

This commit is contained in:
jdescottes 2014-05-18 17:32:20 +02:00
parent f1b6ea4ae3
commit cdef28c60f

View File

@ -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);
}; };