Changing pan gesture to swipe, in any direction, and improving zoom accuracy