Click is performing swipe right after the swipe left action

I have to swipe left and click on delete button to delete an element in my application. I am using touch actions to swipe, it is working fine and swiping left. I am clicking on delete button after the swipe but the click button is swiping right the element.

@Shivangi can you show the code?