We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90afe98 commit b767c8bCopy full SHA for b767c8b
components/SwipeRow.js
@@ -72,7 +72,10 @@ class SwipeRow extends Component {
72
this.currentTranslateX = value;
73
if (this.props.onSwipeValueChange) {
74
let direction = this.previousTrackedDirection;
75
- if (value !== this.previousTrackedTranslateX) {
+ if (
76
+ value !== this.previousTrackedTranslateX &&
77
+ Math.abs(value - this.previousTrackedTranslateX) > 0.5
78
+ ) {
79
direction =
80
value > this.previousTrackedTranslateX
81
? 'right'
0 commit comments