             self.panLocationStart = location.y
         case .bottom:
             if self.targetView is UIScrollView {
-                self.panLocationStart = 0
                 self.panLocationStart = location.y
             } else {
                 self.panLocationStart = location.y

        } else {
            switch self.direction {
            case .top, .bottom:
                bounds = self.targetView.bounds.height
            case .left, .right:
                bounds = self.targetView.bounds.width
            }
        }
        switch self.direction {

    public var panCompletionThreshold: CGFloat = 30.0
    public var velocityThreshold: CGFloat = 0.0
    public var panBoundsPoint: CGPoint?
    public var panFrameSize: CGSize?
    
    fileprivate let targetView: UIView
    
