-
Notifications
You must be signed in to change notification settings - Fork 199
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
fix: 修复 2k 显示器切换到 MacBook 后表格渲染模糊 close #2072 #2074
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +44 B (0%) Total Size: 435 kB
ℹ️ View Unchanged
|
你好, @lijinke666 CI 执行失败, 请点击 [Details] 按钮查看, 并根据日志修复。 Hello, @lijinke666 CI run failed, please click the [Details] button for detailed log information and fix it. |
Codecov ReportBase: 77.16% // Head: 76.59% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2074 +/- ##
==========================================
- Coverage 77.16% 76.59% -0.57%
==========================================
Files 234 240 +6
Lines 11518 12238 +720
Branches 2449 2606 +157
==========================================
+ Hits 8888 9374 +486
- Misses 1258 1366 +108
- Partials 1372 1498 +126
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
🎉 This PR is included in version @antv/s2-v1.41.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @antv/s2-v2.0.0-next.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
👀 PR includes
✨ Feature
🎨 Enhance
🐛 Bugfix
📝 Description
背景见 #2072
原因: 我们通过
matchMedia
监听设备 DPR 的改变来做高清渲染, 通过visualViewport
的resize
来监听Mac 触摸板双指缩放, DPR改变时resize
事件也会触发 (在 matchMedia) 之后, 导致 DPR 从 1 => 2 => 1 , 多渲染了一次🖼️ Screenshot
🔗 Related issue link
🔍 Self-Check before the merge