This commit is contained in:
bluesea 2024-04-30 15:02:02 +08:00
parent a6589009c9
commit b3f77d8843
3 changed files with 5 additions and 7 deletions

View File

@ -394,10 +394,10 @@ class ZZHCustomPlayer: UIView {
if sender.state == .began {
temScale = 1.0
}
currentScale = currentScale - (temScale - sender.scale)
currentScale = min(currentScale, 1.8)
currentScale = max(currentScale, 0.3)
var ts = currentScale - (temScale - sender.scale)
ts = min(ts, 1.8)
ts = max(ts, 0.3)
currentScale = ts
temScale = sender.scale
print("\(sender.scale) currentScale....\(currentScale)")
}

View File

@ -59,10 +59,8 @@ class PlayByTransferConvertor {
newpb = joinImages_sbs(left: left, right: right, imgWidth: cwidth, imgHeight:cheight,scale: scale)
break
case .fsbs:
// cwidth = left.size.width
// cheight = left.size.height
// newpb = joinImages_fsbs(left: left, right: right, imgWidth: cwidth, imgHeight: cheight)
newpb = joinImages(leftImage: lciImage, rightImage: rciImage,scale: scale,ed: ed)
// newpb = joinImages(leftImage: rciImage, rightImage: lciImage,scale: scale,ed: ed)
break
case .parallelEyes://