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

        static var startPointOfPan: CGPoint = CGPointZero
        static var wasOpenAtStartOfPan: Bool = false
        static var wasHiddenAtStartOfPan: Bool = false
    }
    
    func handleRightPanGesture(panGesture: UIPanGestureRecognizer) {

        case UIGestureRecognizerState.Failed, UIGestureRecognizerState.Possible:
            break
        }
        
        RightPanState.lastState = panGesture.state
    }
    
    public func openLeftWithVelocity(velocity: CGFloat) {
