Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pushable inaccuracy #305

Merged

Conversation

Robin-front
Copy link
Contributor

trace: #199

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 62.009% when pulling d601b4d on Robin-front:bugfix/pushable-inaccuracy into caf5866 on react-component:master.

@paranoidjk
Copy link
Member

@Robin-front Thanks for your PR. I noticed that you have helped us fixed many problems. I'd like to invite you to be a Collaborators of rc-slider, you can click this link if you are willing too https://github.com/react-component/slider/invitations

@@ -219,7 +218,7 @@ class Range extends React.Component {
const diffToNext = direction * (bounds[nextHandle] - value);
if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
// revert to original value if pushing is impossible
bounds[handle] = originalValue;
bounds[handle] = bounds[nextHandle] - (direction * threshold);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushable may be a boolean

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, there is implicit-conversion when calculate. But of course, it's not serious. I will change to explicit.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 61.739% when pulling f02c9cd on Robin-front:bugfix/pushable-inaccuracy into caf5866 on react-component:master.

@yesmeck yesmeck merged commit 138abd7 into react-component:master Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants