formatting

This commit is contained in:
Mohit Bansal 2023-02-10 16:44:55 +05:30
parent 4bc9ea4573
commit dac697c74e

View File

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