Skip to content

Commit 0873e9c

Browse files
author
Valentin Hervieu
committed
fix(draggableRangeOnly): Fix the floor limit when floor is different than 0
Closes #293
1 parent 228c268 commit 0873e9c

File tree

4 files changed

+41
-15
lines changed

4 files changed

+41
-15
lines changed

dist/rzslider.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v2.10.3 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2016-03-14 */
4+
2016-03-16 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -1594,9 +1594,9 @@
15941594
if (type === 'min') {
15951595
if (outOfBounds) {
15961596
if (isAbove) {
1597-
value = isRTL ? value : this.maxValue - this.dragging.difference;
1597+
value = isRTL ? this.minValue : this.maxValue - this.dragging.difference;
15981598
} else {
1599-
value = isRTL ? this.maxValue - this.dragging.difference : value;
1599+
value = isRTL ? this.maxValue - this.dragging.difference : this.minValue;
16001600
}
16011601
} else {
16021602
value = isRTL ? this.offsetToValue(newOffset + this.dragging.lowLimit) : this.offsetToValue(newOffset - this.dragging.lowLimit)
@@ -1617,8 +1617,6 @@
16171617
}
16181618
}
16191619
return this.roundStep(value);
1620-
1621-
16221620
},
16231621

16241622
/**

0 commit comments

Comments
 (0)