Skip to content
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: modify scroll bar size #252

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

linxianxi
Copy link
Contributor

@linxianxi linxianxi commented Jan 23, 2024

1、使滚动条的长度与真实的滚动条长度差不多,原来的计算方式不对

这里滚动体宽度太短了,与非 virtual 模式下差距太大
image

2、scrollWidth > size.width 时才显示 horizontal 滚动条,所以内部 canScroll 没用了

Copy link

vercel bot commented Jan 23, 2024

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

Name Status Preview Comments Updated (UTC)
virtual-list ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2024 9:19am

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2d4aef8) 98.24% compared to head (909e8c1) 98.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   98.24%   98.23%   -0.01%     
==========================================
  Files          18       18              
  Lines         683      681       -2     
  Branches      160      160              
==========================================
- Hits          671      669       -2     
  Misses         12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zombieJ zombieJ merged commit edfac3e into react-component:master Feb 1, 2024
11 checks passed
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