修复画布过度动画导致红绿图异常
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user