mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 22:30:32 +05:30
Fix crash on scrubbing
This commit is contained in:
parent
c893b04b46
commit
4d84defb03
@ -281,7 +281,7 @@ struct TimelineView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var thumbTooltipOffset: Double {
|
var thumbTooltipOffset: Double {
|
||||||
let leadingOffset = size.width / 2 - (tooltipSize.width / 2)
|
let leadingOffset = abs(size.width / 2 - (tooltipSize.width / 2))
|
||||||
let offsetForThumb = thumbOffset - thumbLeadingOffset
|
let offsetForThumb = thumbOffset - thumbLeadingOffset
|
||||||
|
|
||||||
guard offsetForThumb > tooltipSize.width / 2 else {
|
guard offsetForThumb > tooltipSize.width / 2 else {
|
||||||
|
Loading…
Reference in New Issue
Block a user