         
         switch panGesture.state {
             case UIGestureRecognizerState.Began:
+                if LeftPanState.lastState != .Ended &&  LeftPanState.lastState != .Cancelled &&  LeftPanState.lastState != .Failed {
+                    return
+                }
                 
                 LeftPanState.frameAtStartOfPan = leftContainerView.frame
                 LeftPanState.startPointOfPan = panGesture.locationInView(view)

        case UIGestureRecognizerState.Failed, UIGestureRecognizerState.Possible:
            break
        }
    }
    
    public func openLeftWithVelocity(velocity: CGFloat) {

        static var startPointOfPan: CGPoint = CGPointZero
        static var wasOpenAtStartOfPan: Bool = false
        static var wasHiddenAtStartOfPan: Bool = false
        static var lastState : UIGestureRecognizerState = .Ended
    }
    
    func handleLeftPanGesture(panGesture: UIPanGestureRecognizer) {
