We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f40db69 commit 43aeefbCopy full SHA for 43aeefb
2 files changed
helpers.js
@@ -1,7 +1,10 @@
1
export const isLowCloser = (downX, lowPosition, highPosition) => {
2
+ if (lowPosition === highPosition) {
3
+ return downX < lowPosition;
4
+ }
5
const distanceFromLow = Math.abs(downX - lowPosition);
6
const distanceFromHigh = Math.abs(downX - highPosition);
- return distanceFromLow <= distanceFromHigh;
7
+ return distanceFromLow < distanceFromHigh;
8
};
9
10
export const clamp = (value, min, max) => {
package.json
@@ -1,6 +1,6 @@
{
"name": "rn-range-slider",
- "version": "2.0.2",
+ "version": "2.0.3",
"author": "Tigran Sahakyan <mail.of.tigran@gmail.com>",
"description": "A highly optimized pure JS implementation of Range Slider for React Native",
"homepage": "https://github.com/githuboftigran/rn-range-slider",
0 commit comments