             unsnapView()
             attachView(topView, toPoint: location)
             swiping?(view: topView, atLocation: location, translation: translation)
-        case .Ended, .Cancelled:
+        case .Ended,.Cancelled:
             detachView()
             let velocity = recognizer.velocityInView(self)
             let velocityMag = velocity.magnitude
             
-            let directionChecked = ZLSwipeableViewDirection.fromPoint(translation) & direction != .None
+            let directionSwiped = ZLSwipeableViewDirection.fromPoint(translation)
+            let directionChecked = directionSwiped & direction != .None
             let signChecked = CGPoint.areInSameTheDirection(translation, p2: velocity)
             let translationChecked = abs(translation.x) > translationThreshold * bounds.width ||
                                      abs(translation.y) > translationThreshold * bounds.height

                view.center = point
            }
            view.addGestureRecognizer(ZLPanGestureRecognizer(target: self, action: Selector("handlePan:")))
            views.insert(view, atIndex: 0)
            containerView.addSubview(view)
            snapView(view, toPoint: convertPoint(center, fromView: superview))

            for i in (views.count..<numPrefetchedViews) {
                if let nextView = nextView?() {
                    nextView.addGestureRecognizer(ZLPanGestureRecognizer(target: self, action: Selector("handlePan:")))
                    nextView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: Selector("handleTap:")))
                    views.append(nextView)
                    containerView.addSubview(nextView)
                    containerView.sendSubviewToBack(nextView)
