From dac697c74e202778ba2e7f32f244c009b1d441dc Mon Sep 17 00:00:00 2001 From: Mohit Bansal Date: Fri, 10 Feb 2023 16:44:55 +0530 Subject: [PATCH] formatting --- src/viewer.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index faa3dd80..93171d0f 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2817,10 +2817,10 @@ function onCanvasKeyDown( event ) { } else { this.viewport.panBy(this.viewport.deltaPointsFromPixels(new $.Point(0, -40))); } - this.viewport.applyConstraints(); - } - event.preventDefault = true; - break; + this.viewport.applyConstraints(); + } + event.preventDefault = true; + break; case 115://s case 83://S if (!canvasKeyDownEventArgs.preventVerticalPan) { @@ -2829,10 +2829,10 @@ function onCanvasKeyDown( event ) { } else { this.viewport.panBy(this.viewport.deltaPointsFromPixels(new $.Point(0, 40))); } - this.viewport.applyConstraints(); - } - event.preventDefault = true; - break; + this.viewport.applyConstraints(); + } + event.preventDefault = true; + break; case 97://a if (!canvasKeyDownEventArgs.preventHorizontalPan) { this.viewport.panBy(this.viewport.deltaPointsFromPixels(new $.Point(-40, 0)));