fix swiping on ios