     
     // Simple gesture with no drag and drop
     switch(recognizer.state) {
-      
+    case .Began:
+      self.gestureToDisplayOngoing = true
+      break
     case .Changed:
       self.showMenus()
       break
-    default:
+    default: // ended
+      self.gestureToDisplayOngoing = false
       break
     }
   }

extension MillefeuilleViewController: UIGestureRecognizerDelegate {
  func handlePanGesture(recognizer: UIPanGestureRecognizer) {
    guard let gestureView = self.mainViewController.viewControllers.first?.view else { return }
    // Only want gesture from the side of the screen
    if !self.leftMenuVisible && recognizer.locationInView(gestureView).x > self.panGestureXLocationStart {
      return

    
    // Registering to a show/hide events in order to display the left menu
    let center = NSNotificationCenter.defaultCenter()
    center.addObserver(self, selector: #selector(MillefeuilleViewController.showMenus), name: MillefeuilleViewController.MILLEFEUILLE_SHOW_MENU, object: nil)
    center.addObserver(self, selector: #selector(MillefeuilleViewController.hideMenus), name: MillefeuilleViewController.MILLEFEUILLE_HIDE_MENU, object: nil)
    
    // Preparing the overlay view
    let swipeRecognizer = UISwipeGestureRecognizer(target: self, action: #selector(MillefeuilleViewController.overlayViewWasSwiped))
