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
c1bde107
Commit
c1bde107
authored
Oct 20, 2015
by
Valentin Hervieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the delta checking in updateLowHandle because it leads to hard-to-debug bugs. Closes # 156.
parent
bf838db1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
rzslider.js
dist/rzslider.js
+1
-5
rzslider.min.js
dist/rzslider.min.js
+1
-1
rzslider.js
src/rzslider.js
+0
-4
No files found.
dist/rzslider.js
View file @
c1bde107
...
@@ -473,7 +473,7 @@ function throttle(func, wait, options) {
...
@@ -473,7 +473,7 @@ function throttle(func, wait, options) {
{
{
this
.
updateLowHandle
(
this
.
valueToOffset
(
this
.
scope
.
rzSliderModel
));
this
.
updateLowHandle
(
this
.
valueToOffset
(
this
.
scope
.
rzSliderModel
));
/*
/*
the order here is important since the selection bar should be
the order here is important since the selection bar should be
updated after the high handle but before the combined label
updated after the high handle but before the combined label
*/
*/
...
@@ -820,10 +820,6 @@ function throttle(func, wait, options) {
...
@@ -820,10 +820,6 @@ function throttle(func, wait, options) {
*/
*/
updateLowHandle
:
function
(
newOffset
)
updateLowHandle
:
function
(
newOffset
)
{
{
var
delta
=
Math
.
abs
(
this
.
minH
.
rzsl
-
newOffset
);
if
(
this
.
minLab
.
rzsv
&&
delta
<
1
)
{
return
;
}
this
.
setLeft
(
this
.
minH
,
newOffset
);
this
.
setLeft
(
this
.
minH
,
newOffset
);
this
.
translateFn
(
this
.
scope
.
rzSliderModel
,
this
.
minLab
);
this
.
translateFn
(
this
.
scope
.
rzSliderModel
,
this
.
minLab
);
this
.
setLeft
(
this
.
minLab
,
newOffset
-
this
.
minLab
.
rzsw
/
2
+
this
.
handleHalfWidth
);
this
.
setLeft
(
this
.
minLab
,
newOffset
-
this
.
minLab
.
rzsw
/
2
+
this
.
handleHalfWidth
);
...
...
dist/rzslider.min.js
View file @
c1bde107
This diff is collapsed.
Click to expand it.
src/rzslider.js
View file @
c1bde107
...
@@ -820,10 +820,6 @@ function throttle(func, wait, options) {
...
@@ -820,10 +820,6 @@ function throttle(func, wait, options) {
*/
*/
updateLowHandle
:
function
(
newOffset
)
updateLowHandle
:
function
(
newOffset
)
{
{
var
delta
=
Math
.
abs
(
this
.
minH
.
rzsl
-
newOffset
);
if
(
this
.
minLab
.
rzsv
&&
delta
<
1
)
{
return
;
}
this
.
setLeft
(
this
.
minH
,
newOffset
);
this
.
setLeft
(
this
.
minH
,
newOffset
);
this
.
translateFn
(
this
.
scope
.
rzSliderModel
,
this
.
minLab
);
this
.
translateFn
(
this
.
scope
.
rzSliderModel
,
this
.
minLab
);
this
.
setLeft
(
this
.
minLab
,
newOffset
-
this
.
minLab
.
rzsw
/
2
+
this
.
handleHalfWidth
);
this
.
setLeft
(
this
.
minLab
,
newOffset
-
this
.
minLab
.
rzsw
/
2
+
this
.
handleHalfWidth
);
...
...
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