         if velocity.x <= thresholdVelocity {
             panInfo.action = .open
             panInfo.velocity = velocity.x
-        } else if (velocity.x >= (-1.0 * thresholdVelocity)) {
+        } else if velocity.x >= (-1.0 * thresholdVelocity) {
             panInfo.action = .close
             panInfo.velocity = velocity.x
         }

    
    open func addLeftGestures() {
    
        if (leftViewController != nil) {
            if (SlideMenuOptions.panGesturesEnabled) {
                if leftPanGesture == nil {
                    leftPanGesture = UIPanGestureRecognizer(target: self, action: #selector(self.handleLeftPanGesture(_:)))
                    leftPanGesture!.delegate = self

                }
            }
            
            if SlideMenuOptions.tapGesturesEnabled {
                if rightTapGesture == nil {
                    rightTapGesture = UITapGestureRecognizer(target: self, action: #selector(self.toggleRight))
                    rightTapGesture!.delegate = self
