1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 06:40:32 +05:30

Fix crash on scrubbing

This commit is contained in:
Arkadiusz Fal 2022-08-08 19:28:25 +02:00
parent c893b04b46
commit 4d84defb03

View File

@ -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 {