mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix crash on scrubbing
This commit is contained in:
parent
a29024698e
commit
ddf306d5c1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user