fixed swipe detection
improved gesture detection