From ddf306d5c1ab38e3e33fce1909f706adf6f9682c Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 8 Aug 2022 19:28:25 +0200 Subject: [PATCH] Fix crash on scrubbing --- Shared/Player/Controls/TimelineView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Player/Controls/TimelineView.swift b/Shared/Player/Controls/TimelineView.swift index 0f882851..e9205c56 100644 --- a/Shared/Player/Controls/TimelineView.swift +++ b/Shared/Player/Controls/TimelineView.swift @@ -281,7 +281,7 @@ struct TimelineView: View { } var thumbTooltipOffset: Double { - let leadingOffset = size.width / 2 - (tooltipSize.width / 2) + let leadingOffset = abs(size.width / 2 - (tooltipSize.width / 2)) let offsetForThumb = thumbOffset - thumbLeadingOffset guard offsetForThumb > tooltipSize.width / 2 else {