Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
53ed9a14
Commit
53ed9a14
authored
Aug 19, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving by 10 px instead of 5 px
parent
6c6cd430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
common/static/js/vendor/image-zoom-tool.js
+6
-6
No files found.
common/static/js/vendor/image-zoom-tool.js
View file @
53ed9a14
...
...
@@ -170,22 +170,22 @@
case
keys
.
up
:
// we move five spaces at a time
magnifyWithKeyboard
(
0
,
5
,
event
);
magnifyWithKeyboard
(
0
,
10
,
event
);
break
;
case
keys
.
down
:
// we move five spaces at a time
magnifyWithKeyboard
(
0
,
-
5
,
event
);
magnifyWithKeyboard
(
0
,
-
10
,
event
);
break
;
case
keys
.
left
:
// we move five spaces at a time
magnifyWithKeyboard
(
5
,
0
,
event
);
magnifyWithKeyboard
(
10
,
0
,
event
);
break
;
case
keys
.
right
:
// we move five spaces at a time
magnifyWithKeyboard
(
-
5
,
0
,
event
);
magnifyWithKeyboard
(
-
10
,
0
,
event
);
break
;
default
:
...
...
@@ -284,11 +284,11 @@
smallLeft
=
$disc
.
css
(
'left'
);
smallLeft
=
smallLeft
.
replace
(
'px'
,
''
);
smallLeft
=
parseInt
(
smallLeft
)
-
(
left
/
5
);
smallLeft
=
parseInt
(
smallLeft
)
-
(
left
/
10
);
smallTop
=
$disc
.
css
(
'top'
);
smallTop
=
smallTop
.
replace
(
'px'
,
''
);
smallTop
=
parseInt
(
smallTop
)
-
(
top
/
5
);
smallTop
=
parseInt
(
smallTop
)
-
(
top
/
10
);
$magnifiedImage
.
css
({
top
:
largeTop
+
'px'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment