Skip to content

Commit

Permalink
fix: value should notify listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley committed Jul 9, 2020
1 parent 43484c9 commit c645d70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3-simple-slider",
"version": "1.7.0",
"version": "1.7.1",
"description": "Renders an SVG slider",
"keywords": [
"d3",
Expand Down
4 changes: 2 additions & 2 deletions src/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ function slider(orientation, scale) {
var pos = toArray.map(scale).map(identityClamped);
var newValue = pos.map(scale.invert).map(alignedValue);

updateHandle(newValue, false);
updateValue(newValue, false);
updateHandle(newValue, true);
updateValue(newValue, true);
} else {
value = toArray;
}
Expand Down

0 comments on commit c645d70

Please sign in to comment.