Various fixes

This commit is contained in:
Ilya Laktyushin
2022-09-21 02:13:36 +03:00
parent 37002ab90d
commit 74af8d17e1
22 changed files with 381 additions and 49 deletions

View File

@@ -877,7 +877,7 @@ public final class MediaPlayerScrubbingNode: ASDisplayNode {
}
let endPosition: CGFloat = max(startPosition, floor(backgroundFrame.width * CGFloat(chapter.start / duration)) - lineWidth / 2.0)
let width = endPosition - startPosition
if width < lineWidth * 2.0 {
if width < lineWidth * 0.5 {
previousChapterNode.frame = CGRect()
continue
}