Hi, I am using the following:
useGesture(
{
onDrag: (state) => handleDrag(state),
},
{
drag: {
swipe: { distance: 3, velocity: [0.2, 0.2], duration: 400 },
axis: 'y',
},
}
);
Now, there is a bug where the state.swipe[0] and state.swipe[1] is equal to -1 simultaneously! If I understood axis setting correctly, this should not happen.