added velocity for better swipe detection and changed distanceXY to deltaXY