diff --git a/Sources/Core.swift b/Sources/Core.swift index 55233457..a2c8ec0a 100644 --- a/Sources/Core.swift +++ b/Sources/Core.swift @@ -717,15 +717,16 @@ class Core: NSObject, UIGestureRecognizerDelegate { if let result = vc.delegate?.floatingPanel?(vc, shouldRemoveAt: vc.surfaceLocation, with: velocityVector) { return result } + let threshold = CGFloat(5.5) switch layoutAdapter.position { case .top: - return (velocityVector.dy <= -10.0) + return (velocityVector.dy <= -threshold) case .left: - return (velocityVector.dx <= -10.0) + return (velocityVector.dx <= -threshold) case .bottom: - return (velocityVector.dy >= 10.0) + return (velocityVector.dy >= threshold) case .right: - return (velocityVector.dx >= 10.0) + return (velocityVector.dx >= threshold) } }