|
@@ -265,8 +265,8 @@ extension BFVideoThumbProgressView: UIScrollViewDelegate {
|
|
|
}
|
|
|
} else if recordItem?.mediaType == .IMAGE {
|
|
|
if isDrag {
|
|
|
- if scrollView.contentOffset.x > ((CGFloat(recordItem?.materialDuraion.seconds ?? 0) * thumbImageWidth / 2.0) + 0.34) {
|
|
|
- scrollView.contentOffset = CGPoint(x: (CGFloat(recordItem?.materialDuraion.seconds ?? 0) * thumbImageWidth / 2.0) + 0.34, y: 0)
|
|
|
+ if scrollView.contentOffset.x > ((CGFloat(recordItem?.materialDuraion.seconds ?? 0) * thumbImageWidth / 2.0) + 0.5) {
|
|
|
+ scrollView.contentOffset = CGPoint(x: (CGFloat(recordItem?.materialDuraion.seconds ?? 0) * thumbImageWidth / 2.0) + 0.5, y: 0)
|
|
|
}
|
|
|
dragScrollProgressHandle?(false, totalW > 0 ? Float(scrollView.contentOffset.x / totalW) : 0)
|
|
|
}
|