Skip to content

fix:修改缩放比例的取值方式,将取整改为对后五位之后四舍五入,避免实际缩放比例差异较大 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

ding-chengjie
Copy link

@ding-chengjie ding-chengjie commented Jan 10, 2025

Summary

close:#8

  • 修改缩放比例的取值方式,将直接对缩放比例进行取整更改为小数点后五位之后的四舍五入,避免因直接取整导致的实际缩放比例偏差较大,可能无变化,可能直接缩放成0

Checklist

  • 已经在真机设备或模拟器上测试通过
  • 已经与 Android 或 iOS 平台做过效果/功能对比
  • 已经添加了对应 API 的测试用例(如需要)
  • 已经更新了文档(如需要)
  • 更新了 JS/TS 代码 (如有)

@yuangerep yuangerep merged commit 9fd89f8 into react-native-oh-library:sig Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants