|
@@ -980,7 +980,7 @@ public class BFRecordScreenController: BFBaseViewController {
|
|
|
let width = sself.progressThumV.progessIndicateBackV.width
|
|
|
let height = sself.progressThumV.progessIndicateBackV.height
|
|
|
sself.itemModels[sself.currItemModelIndex].voiceStickers.forEach { model in
|
|
|
- let lineV = UIView(frame: CGRect(x: model.startTime * width / totalDur , y: 0, width: (model.endTime - model.startTime) * width / totalDur, height: height))
|
|
|
+ let lineV = UIView(frame: CGRect(x: model.startTime * Double(width) / totalDur , y: 0, width: (model.endTime - model.startTime) * Double(width) / totalDur, height: Double(height)))
|
|
|
lineV.backgroundColor = ThemeStyleColor
|
|
|
sself.progressThumV.progessIndicateBackV.addSubview(lineV)
|
|
|
}
|