fix: 调整iconTop计算逻辑以解决特定缩放下的像素对齐问题
This commit is contained in:
parent
665acc7e7f
commit
e864703ed7
@ -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 };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user