removed unused check in the gesture handlers