|
@@ -267,8 +267,8 @@ class BFMusicCutView: UIView, UIGestureRecognizerDelegate {
|
|
|
let translation = ges.translation(in: backView)
|
|
|
let totalWidth = progressImage.frame.width + (cutRemindView.frame.width / 2)
|
|
|
let itemWidth = totalWidth / CGFloat(Double("\(bgmData?.duration ?? "1")") ?? 0.0)
|
|
|
- let maxX = progressImage.frame.maxX - itemWidth - 3
|
|
|
- let minX = cDefaultMargin * 2 - (cutRemindView.frame.width / 2) - 3
|
|
|
+ let maxX = progressImage.frame.maxX
|
|
|
+ let minX = cDefaultMargin * 2
|
|
|
let maxWidth = maxX - minX + itemWidth
|
|
|
var gesCenx = (ges.view?.center.x ?? 0) + translation.x
|
|
|
if gesCenx < minX {
|