解决合并冲突
This commit is contained in:
@@ -541,10 +541,6 @@ function handleWindowResize() {
|
||||
function resetZoom() {
|
||||
canvasManager.resetZoom();
|
||||
}
|
||||
function setZoom(zoom) {
|
||||
setTimeout(()=>{
|
||||
if (!canvasManager) return;
|
||||
const newZoom = Math.max(zoom, 0.1); // 最小0.1倍
|
||||
|
||||
function setZoom(zoom) {
|
||||
setTimeout(()=>{
|
||||
@@ -555,7 +551,6 @@ function setZoom(zoom) {
|
||||
x: canvasManager.canvas.width / 2,
|
||||
y: canvasManager.canvas.height / 2,
|
||||
};
|
||||
|
||||
canvasManager.animateZoom(centerPoint, newZoom);
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user