Skip to content

Commit d45b28c

Browse files
committed
noUiSlider 13.1.4
1 parent 55eb9ea commit d45b28c

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
### 13.1.4 (*2019-03-20*)
4+
- Fixed: Keyboard interaction does not work with `snap` option (#961);
5+
36
### 13.1.3 (*2019-03-15*)
47
- Fixed: Keyboard interaction allows handles to "push" other handles (#960);
58
- Fixed: Update event fires for all handles during keyboard interaction (#960);

distribute/nouislider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! nouislider - 13.1.3 - 3/15/2019 */
1+
/*! nouislider - 13.1.4 - 3/20/2019 */
22
/* Functional styling;
33
* These styles are required for noUiSlider to function.
44
* You don't need to change these rules to apply your design.

distribute/nouislider.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! nouislider - 13.1.3 - 3/15/2019 */
1+
/*! nouislider - 13.1.4 - 3/20/2019 */
22
(function(factory) {
33
if (typeof define === "function" && define.amd) {
44
// AMD. Register as an anonymous module.
@@ -13,7 +13,7 @@
1313
})(function() {
1414
"use strict";
1515

16-
var VERSION = "13.1.3";
16+
var VERSION = "13.1.4";
1717

1818
//region Helper Methods
1919

@@ -2259,6 +2259,14 @@
22592259
var increment = nearbySteps.thisStep.step;
22602260
var decrement = null;
22612261

2262+
// If snapped, directly use defined step value
2263+
if (options.snap) {
2264+
return [
2265+
value - nearbySteps.stepBefore.startValue || null,
2266+
nearbySteps.stepAfter.startValue - value || null
2267+
];
2268+
}
2269+
22622270
// If the next value in this step moves into the next step,
22632271
// the increment is the start of the next step - the current value
22642272
if (increment !== false) {

distribute/nouislider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

distribute/nouislider.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nouislider",
3-
"version": "13.1.3",
3+
"version": "13.1.4",
44
"main": "distribute/nouislider.js",
55
"style": "distribute/nouislider.min.css",
66
"license": "MIT",

src/nouislider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,7 +2265,7 @@
22652265
nearbySteps.stepAfter.startValue - value || null
22662266
];
22672267
}
2268-
2268+
22692269
// If the next value in this step moves into the next step,
22702270
// the increment is the start of the next step - the current value
22712271
if (increment !== false) {

0 commit comments

Comments
 (0)