swiping from both directions works.need to add click listener to action buttons and a velocity tracker