react-swipeable-list icon indicating copy to clipboard operation
react-swipeable-list copied to clipboard

Fix wrong swipe direction

Open lukaselmer opened this issue 2 years ago • 0 comments

When first starting to swipe to the left, and then (while not letting go) swipe to the right, the first left side is triggered instead of the right one.

This PR removes the check that the direction is set only when the direction is unknown. I don't know if this has other consequences / impacts, but I guess that it was there for performance optimization reasons, which in the end lead to a bug.

lukaselmer avatar Nov 12 '23 15:11 lukaselmer