瀏覽代碼

最大位置和 最小位置调整

jsonwang 3 年之前
父節點
當前提交
4581ca3c75
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      BFRecordScreenKit/Classes/RecordScreen/View/BFMusicCutView.swift

+ 2 - 2
BFRecordScreenKit/Classes/RecordScreen/View/BFMusicCutView.swift

@@ -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 {