修复画布过度动画导致红绿图异常

This commit is contained in:
X1627315083
2025-10-16 16:30:09 +08:00
parent b1bb96b6fd
commit 57878af36b

View File

@@ -69,7 +69,7 @@ export class AnimationManager {
// 如果变化太小,直接应用缩放
if (Math.abs(targetZoom - currentZoom) < 0.01) {
this._applyZoom(point, targetZoom);
// this._applyZoom(point, targetZoom);
return;
}
@@ -121,7 +121,7 @@ export class AnimationManager {
this._zoomAnimation = null;
// 确保最终状态准确
this._applyZoom(point, targetZoom, true);
// this._applyZoom(point, targetZoom, true);
},
};
@@ -817,7 +817,7 @@ export class AnimationManager {
this._wasZooming = false;
// 确保最终状态准确
this._applyZoom(point, targetZoom, true);
// this._applyZoom(point, targetZoom, true);
},
});
}