Skip to content

Conversation

@edc-hui
Copy link

@edc-hui edc-hui commented Oct 19, 2022

修复ant design 中 关于Progress组件在Safari浏览器中,浏览器缩放导致Circle不能正常显示的bug。
相关issue: ant-design/ant-design#38026

@vercel
Copy link

vercel bot commented Oct 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
progress ✅ Ready (Inspect) Visit Preview Oct 19, 2022 at 2:50AM (UTC)

return () => {
window.removeEventListener('resize', calculateTransformOrigin);
};
}, []);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样监听 dom 事件太复杂了,而且用 UA 判断并不可靠,看看有没有更好的兼容方式。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的 我再想想。

@codecov
Copy link

codecov bot commented Oct 19, 2022

Codecov Report

Merging #182 (db7bdea) into master (5830609) will decrease coverage by 5.75%.
The diff coverage is 52.63%.

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
- Coverage   99.25%   93.50%   -5.76%     
==========================================
  Files           4        4              
  Lines         135      154      +19     
  Branches       42       46       +4     
==========================================
+ Hits          134      144      +10     
- Misses          1       10       +9     
Impacted Files Coverage Δ
src/Circle.tsx 90.69% <50.00%> (-9.31%) ⬇️
src/common.ts 90.47% <66.66%> (-3.97%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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