 				v.width = self.leftViewWidth
 				v.height = self.view.bounds.height
 			}
-			horizontalThreshold = leftViewWidth / 2
+			leftViewThreshold = leftViewWidth / 2
 			leftViewController?.view.frame.size.width = v.width
 			leftViewController?.view.frame.size.height = v.height
 			leftViewController?.view.center = CGPointMake(v.width / 2, v.height / 2)

			
			delegate?.sideNavigationViewPanDidEnd?(self, point: leftView!.position)
			
			if leftView!.x <= CGFloat(floor(-leftViewWidth)) + horizontalThreshold || point.x <= -1000 {
				closeLeftView(x)
			} else {
				openLeftView(x)

	public func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldReceiveTouch touch: UITouch) -> Bool {
		if enabled {
			if gestureRecognizer == panGesture {
				return enabled && isPointContainedWithinLeftViewThreshold(touch.locationInView(view))
			}
			if opened && gestureRecognizer == tapGesture {
				let point: CGPoint = touch.locationInView(view)
