|
@@ -153,9 +153,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
progressThumV.recordItem = itemModel
|
|
|
rscurrentManager.recordItem = itemModel
|
|
|
rscurrentManager.resetEnv()
|
|
|
- if currMediaType == .Video {
|
|
|
- (cell as? BFVideoCoverViewCell)?.rotationView()
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -330,6 +328,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 18)
|
|
|
btn.addCorner(corner: 6)
|
|
|
btn.addTarget(self, action: #selector(deleteRecordAction), for: .touchUpInside)
|
|
|
+ btn.eventInterval = 0.25
|
|
|
btn.isHidden = true
|
|
|
return btn
|
|
|
}()
|
|
@@ -1195,12 +1194,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
}
|
|
|
|
|
|
@objc func deleteRecordAction() {
|
|
|
- deleteRecordBtn.isEnabled = false
|
|
|
- DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) {[weak self] in
|
|
|
- guard let wself = self else { return }
|
|
|
- wself.deleteRecordBtn.isEnabled = true
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
if !isDragingProgressSlder, isStopAtRecordRange != -1, isStopAtRecordRange < itemModels[currItemModelIndex].voiceStickers.count {
|
|
|
let model = itemModels[currItemModelIndex].voiceStickers[isStopAtRecordRange]
|
|
|
itemModels[currItemModelIndex].voiceStickers.remove(at: isStopAtRecordRange)
|
|
@@ -2339,9 +2333,7 @@ extension BFRecordScreenController: UICollectionViewDelegate, UICollectionViewDa
|
|
|
public func collectionView(_: UICollectionView, didSelectItemAt _: IndexPath) {}
|
|
|
|
|
|
public func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) {
|
|
|
- if let currCell = cell as? BFVideoCoverViewCell {
|
|
|
- currCell.rotationView()
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
public func scrollViewWillBeginDragging(_: UIScrollView) {
|
|
|
BFLog(1, message: "开始滚动")
|