Skip to content

Commit

Permalink
Fix code review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Rozmus committed Jan 10, 2020
1 parent d4880bc commit 926c275
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SwipeableListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class SwipeableListItem extends PureComponent {
event.preventDefault();

const delta = clientX - this.dragStartPoint.x;

if (this.shouldMoveItem(delta)) {
this.left = delta;
}
Expand All @@ -135,6 +136,7 @@ class SwipeableListItem extends PureComponent {
event.preventDefault();

const delta = clientX - this.dragStartPoint.x;

if (this.shouldMoveItem(delta)) {
this.left = delta;
}
Expand Down

0 comments on commit 926c275

Please sign in to comment.