From 6b098c1c2b3d128708ea6081ba25039b8a539646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20=C3=96berg?= Date: Wed, 4 Nov 2015 11:00:08 +0100 Subject: [PATCH] Fixed zooming in with plus sign. --- src/viewer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viewer.js b/src/viewer.js index c66556f1..923bfd6b 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2293,6 +2293,7 @@ function onCanvasKeyDown( event ) { function onCanvasKeyPress( event ) { if ( !event.preventDefaultAction && !event.ctrl && !event.alt && !event.meta ) { switch( event.keyCode ){ + case 43://=|+ case 61://=|+ this.viewport.zoomBy(1.1); this.viewport.applyConstraints();