Remove event listeners once the gesture has been released.