提交 cb605e27 编写于 作者: 雪洛's avatar 雪洛

fix: upx2px

上级 9c6a49a3
......@@ -32,9 +32,9 @@ export function upx2px (number, newDeviceWidth) {
result = Math.floor(result + EPS)
if (result === 0) {
if (deviceDPR === 1 || !isIOS) {
return 1
result = 1
} else {
return 0.5
result = 0.5
}
}
return number < 0 ? -result : result
......
......@@ -16,9 +16,9 @@ export function upx2px (number, newDeviceWidth) {
result = Math.floor(result + EPS)
if (result === 0) {
if (deviceDPR === 1 || !isIOS) {
return 1
result = 1
} else {
return 0.5
result = 0.5
}
}
return number < 0 ? -result : result
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册