mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-27 18:43:51 +03:00
Fix lack of braces on if statements
JavaScript's most popular rack in the grass for maintenance coders…
This commit is contained in:
parent
643ee211ca
commit
d644acd50b
@ -276,19 +276,21 @@ $.Viewer = function( options ) {
|
|||||||
case 119://w
|
case 119://w
|
||||||
case 87://W
|
case 87://W
|
||||||
case 38://up arrow
|
case 38://up arrow
|
||||||
if (shiftKey)
|
if (shiftKey) {
|
||||||
_this.viewport.zoomBy(1.1);
|
_this.viewport.zoomBy(1.1);
|
||||||
else
|
} else {
|
||||||
_this.viewport.panBy(new $.Point(0, -0.05));
|
_this.viewport.panBy(new $.Point(0, -0.05));
|
||||||
|
}
|
||||||
_this.viewport.applyConstraints();
|
_this.viewport.applyConstraints();
|
||||||
return false;
|
return false;
|
||||||
case 115://s
|
case 115://s
|
||||||
case 83://S
|
case 83://S
|
||||||
case 40://down arrow
|
case 40://down arrow
|
||||||
if (shiftKey)
|
if (shiftKey) {
|
||||||
_this.viewport.zoomBy(0.9);
|
_this.viewport.zoomBy(0.9);
|
||||||
else
|
} else {
|
||||||
_this.viewport.panBy(new $.Point(0, 0.05));
|
_this.viewport.panBy(new $.Point(0, 0.05));
|
||||||
|
}
|
||||||
_this.viewport.applyConstraints();
|
_this.viewport.applyConstraints();
|
||||||
return false;
|
return false;
|
||||||
case 97://a
|
case 97://a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user