소스 검색

最大位置和 最小位置调整

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 {