diff --git a/MVMCoreUI/Atoms/Views/Label.swift b/MVMCoreUI/Atoms/Views/Label.swift index 3c2d73c1..74394a90 100644 --- a/MVMCoreUI/Atoms/Views/Label.swift +++ b/MVMCoreUI/Atoms/Views/Label.swift @@ -701,11 +701,11 @@ extension UITapGestureRecognizer { } case .center: let halfBounds = label.bounds.width / 2 - let halfintrinsicWidth = intrinsicWidth / 2 + let halfIntrinsicWidth = intrinsicWidth / 2 - if tapLocation.x > halfBounds + halfintrinsicWidth{ + if tapLocation.x > halfBounds + halfIntrinsicWidth { return false - } else if tapLocation.x < halfBounds - halfintrinsicWidth { + } else if tapLocation.x < halfBounds - halfIntrinsicWidth { return false } default: // Left align