Gesture detection works now perfectly with the fragment lifecycle