mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +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 87://W
|
||||
case 38://up arrow
|
||||
if (shiftKey)
|
||||
if (shiftKey) {
|
||||
_this.viewport.zoomBy(1.1);
|
||||
else
|
||||
} else {
|
||||
_this.viewport.panBy(new $.Point(0, -0.05));
|
||||
}
|
||||
_this.viewport.applyConstraints();
|
||||
return false;
|
||||
case 115://s
|
||||
case 83://S
|
||||
case 40://down arrow
|
||||
if (shiftKey)
|
||||
if (shiftKey) {
|
||||
_this.viewport.zoomBy(0.9);
|
||||
else
|
||||
} else {
|
||||
_this.viewport.panBy(new $.Point(0, 0.05));
|
||||
}
|
||||
_this.viewport.applyConstraints();
|
||||
return false;
|
||||
case 97://a
|
||||
|
Loading…
x
Reference in New Issue
Block a user