Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
i20rzslider
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jedife
i20rzslider
Commits
d4b686dd
Commit
d4b686dd
authored
May 31, 2015
by
Rafal Zajac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slider handle movement fix
parent
f973f321
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
rzslider.min.js
dist/rzslider.min.js
+1
-1
rzslider.js
rzslider.js
+4
-4
No files found.
dist/rzslider.min.js
View file @
d4b686dd
This diff is collapsed.
Click to expand it.
rzslider.js
View file @
d4b686dd
...
...
@@ -568,8 +568,6 @@ function throttle(func, wait, options) {
*/
updateHandles
:
function
(
which
,
newOffset
)
{
//console.log(this.scope[this.tracking], which, newOffset); // TODO: remove this!
if
(
which
===
'rzSliderModel'
)
{
this
.
updateLowHandle
(
newOffset
);
...
...
@@ -610,6 +608,7 @@ function throttle(func, wait, options) {
updateLowHandle
:
function
(
newOffset
)
{
var
delta
=
Math
.
abs
(
this
.
minH
.
rzsl
-
newOffset
);
if
(
delta
<=
0
&&
delta
<
1
)
{
return
;
}
this
.
setLeft
(
this
.
minH
,
newOffset
);
...
...
@@ -824,7 +823,7 @@ function throttle(func, wait, options) {
*/
valueToOffset
:
function
(
val
)
{
return
Math
.
round
(
(
Math
.
ceil
(
val
)
-
this
.
minValue
)
*
this
.
maxLeft
/
this
.
valueRange
);
return
Math
.
round
(
(
Math
.
ceil
(
val
)
-
this
.
minValue
)
*
this
.
maxLeft
/
this
.
valueRange
);
},
/**
...
...
@@ -835,7 +834,7 @@ function throttle(func, wait, options) {
*/
offsetToValue
:
function
(
offset
)
{
return
Math
.
ceil
(
(
offset
/
this
.
maxLeft
)
*
this
.
valueRange
+
this
.
minValue
);
return
Math
.
round
(
(
offset
/
this
.
maxLeft
)
*
this
.
valueRange
+
this
.
minValue
);
},
// Events
...
...
@@ -939,6 +938,7 @@ function throttle(func, wait, options) {
newValue
=
this
.
offsetToValue
(
newOffset
);
newValue
=
this
.
roundStep
(
newValue
);
newOffset
=
this
.
valueToOffset
(
newValue
);
if
(
this
.
range
)
{
...
...
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