fix: 调整iconTop计算逻辑以解决特定缩放下的像素对齐问题

This commit is contained in:
xudan 2025-06-30 17:16:47 +08:00
parent 665acc7e7f
commit e864703ed7

View File

@ -547,7 +547,7 @@ export class EditorService extends Meta2d {
// 根据当前缩放比例调整iconTop避免15%等特定缩放下的像素对齐问题(小车和光圈没重合的问题)
const scale = this.store.data.scale || 1;
const iconTop = Math.round(-5 * scale) / scale;
const iconTop = Math.round(-10 * scale) / scale;
return { image, iconWidth: 34, iconHeight: 54, iconTop };
}