Commit 53ed9a14 by Chris Rodriguez

Moving by 10 px instead of 5 px

parent 6c6cd430
...@@ -170,22 +170,22 @@ ...@@ -170,22 +170,22 @@
case keys.up: case keys.up:
// we move five spaces at a time // we move five spaces at a time
magnifyWithKeyboard(0, 5, event); magnifyWithKeyboard(0, 10, event);
break; break;
case keys.down: case keys.down:
// we move five spaces at a time // we move five spaces at a time
magnifyWithKeyboard(0, -5, event); magnifyWithKeyboard(0, -10, event);
break; break;
case keys.left: case keys.left:
// we move five spaces at a time // we move five spaces at a time
magnifyWithKeyboard(5, 0, event); magnifyWithKeyboard(10, 0, event);
break; break;
case keys.right: case keys.right:
// we move five spaces at a time // we move five spaces at a time
magnifyWithKeyboard(-5, 0, event); magnifyWithKeyboard(-10, 0, event);
break; break;
default: default:
...@@ -284,11 +284,11 @@ ...@@ -284,11 +284,11 @@
smallLeft = $disc.css('left'); smallLeft = $disc.css('left');
smallLeft = smallLeft.replace('px', ''); smallLeft = smallLeft.replace('px', '');
smallLeft = parseInt(smallLeft) - (left / 5); smallLeft = parseInt(smallLeft) - (left / 10);
smallTop = $disc.css('top'); smallTop = $disc.css('top');
smallTop = smallTop.replace('px', ''); smallTop = smallTop.replace('px', '');
smallTop = parseInt(smallTop) - (top / 5); smallTop = parseInt(smallTop) - (top / 10);
$magnifiedImage.css({ $magnifiedImage.css({
top: largeTop + 'px', top: largeTop + 'px',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment