Skip to content

Commit

Permalink
noUiSlider 13.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Mar 20, 2019
1 parent 55eb9ea commit d45b28c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

### 13.1.4 (*2019-03-20*)
- Fixed: Keyboard interaction does not work with `snap` option (#961);

### 13.1.3 (*2019-03-15*)
- Fixed: Keyboard interaction allows handles to "push" other handles (#960);
- Fixed: Update event fires for all handles during keyboard interaction (#960);
Expand Down
2 changes: 1 addition & 1 deletion distribute/nouislider.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! nouislider - 13.1.3 - 3/15/2019 */
/*! nouislider - 13.1.4 - 3/20/2019 */
/* Functional styling;
* These styles are required for noUiSlider to function.
* You don't need to change these rules to apply your design.
Expand Down
12 changes: 10 additions & 2 deletions distribute/nouislider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! nouislider - 13.1.3 - 3/15/2019 */
/*! nouislider - 13.1.4 - 3/20/2019 */
(function(factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
Expand All @@ -13,7 +13,7 @@
})(function() {
"use strict";

var VERSION = "13.1.3";
var VERSION = "13.1.4";

//region Helper Methods

Expand Down Expand Up @@ -2259,6 +2259,14 @@
var increment = nearbySteps.thisStep.step;
var decrement = null;

// If snapped, directly use defined step value
if (options.snap) {
return [
value - nearbySteps.stepBefore.startValue || null,
nearbySteps.stepAfter.startValue - value || null
];
}

// If the next value in this step moves into the next step,
// the increment is the start of the next step - the current value
if (increment !== false) {
Expand Down
2 changes: 1 addition & 1 deletion distribute/nouislider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions distribute/nouislider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nouislider",
"version": "13.1.3",
"version": "13.1.4",
"main": "distribute/nouislider.js",
"style": "distribute/nouislider.min.css",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/nouislider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2265,7 +2265,7 @@
nearbySteps.stepAfter.startValue - value || null
];
}

// If the next value in this step moves into the next step,
// the increment is the start of the next step - the current value
if (increment !== false) {
Expand Down

0 comments on commit d45b28c

Please sign in to comment.