|
@@ -393,28 +393,6 @@ export struct MultiMediaCollect {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // private adjustOffsetWithAnimation() {
|
|
|
- // let moveScale = (this.scaleValue-1)/2
|
|
|
- // // const maxOffsetX = 760*moveScale //rk3588
|
|
|
- // // const maxOffsetY = 520*moveScale //rk3588
|
|
|
- // const maxOffsetX = 1635/1.5*moveScale //rk3568
|
|
|
- // const maxOffsetY = 1038/1.5*moveScale //rk3568
|
|
|
- // // 钳制偏移量到合法范围内
|
|
|
- // const clampedX = Math.max(-maxOffsetX, Math.min(maxOffsetX, this.offsetX));
|
|
|
- // const clampedY = Math.max(-maxOffsetY, Math.min(maxOffsetY, this.offsetY));
|
|
|
- //
|
|
|
- // // 只有超出边界时才触发动画
|
|
|
- // if (this.offsetX !== clampedX || this.offsetY !== clampedY) {
|
|
|
- // animateTo({
|
|
|
- // duration: 300,
|
|
|
- // curve: Curve.EaseOut
|
|
|
- // }, () => {
|
|
|
- // this.offsetX = clampedX;
|
|
|
- // this.offsetY = clampedY;
|
|
|
- // });
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
async aboutToAppear() {
|
|
|
this.loadPhotos();
|
|
|
await this.createSubscriber();
|