       }
       
     default:
+      guard targetIndex != -1 else {
+        return
+      }
+      
       let progress = (translationX + velocityX) / view.bounds.width
       
       let isUserHandDirectionLeft = progress < 0

      
      completion?(isFinishing)
      
      if isTriggeredByUserInteraction {
        self.delegate?.tabsController?(tabsController: self, didSelect: viewController)
      }
    }
  }

      } else {
        tabBar.cancelLineTransition()
        MotionTransition.shared.cancel()
        delegate?.tabsController?(tabsController: self, willCancelSelecting: viewControllers[targetIndex])
      }
      targetIndex = -1
    }
