From cdef28c60feb943d1e7d61d60850b08c4f2a035c Mon Sep 17 00:00:00 2001 From: jdescottes Date: Sun, 18 May 2014 17:32:20 +0200 Subject: [PATCH] Fix : force zoomMultiplier to 1 on using +/- --- src/js/controller/DrawingController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/controller/DrawingController.js b/src/js/controller/DrawingController.js index b7d7eaab..65560ca6 100644 --- a/src/js/controller/DrawingController.js +++ b/src/js/controller/DrawingController.js @@ -63,8 +63,8 @@ $.subscribe(Events.FRAME_SIZE_CHANGED, $.proxy(this.onFrameSizeChanged_, this)); pskl.app.shortcutService.addShortcut('0', this.resetZoom_.bind(this)); - pskl.app.shortcutService.addShortcut('+', this.increaseZoom_.bind(this)); - pskl.app.shortcutService.addShortcut('-', this.decreaseZoom_.bind(this)); + pskl.app.shortcutService.addShortcut('+', this.increaseZoom_.bind(this, 1)); + pskl.app.shortcutService.addShortcut('-', this.decreaseZoom_.bind(this, 1)); window.setTimeout(this.afterWindowResize_.bind(this), 100); };