-
-
Notifications
You must be signed in to change notification settings - Fork 612
fix: scroll logic #1239
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: scroll logic #1239
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Walkthrough此次变更更新了两个部分。首先,工作流配置文件中的测试作业引用由 Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as 开发者
participant GH as GitHub Actions
participant Test as test-npm.yml 流程
Dev->>GH: 提交代码
GH->>Test: 触发测试作业
Test-->>GH: 返回测试结果
GH-->>Dev: 汇报测试结果
sequenceDiagram
participant Comp as StickyScrollBar 组件
participant Ref as scrollBodyRef
participant DOM as getDOM 函数
Comp->>Ref: 访问 scrollBodyRef.current
Comp->>DOM: 调用 getDOM(scrollBodyRef.current)
DOM-->>Comp: 返回父元素 (HTMLElement 或 SVGElement)
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
src/stickyScrollBar.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the config "prettier" to extend from. Please check that the name of the config is correct. The config "prettier" was referenced from the config file in "/.eslintrc.js". If you still have problems, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1239 +/- ##
=======================================
Coverage 97.77% 97.77%
=======================================
Files 76 76
Lines 7453 7454 +1
Branches 1132 1132
=======================================
+ Hits 7287 7288 +1
Misses 160 160
Partials 6 6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* fix: scroll logic (#1239) * fix: scroll logic * fix: ci * chore: fix lint
* fix: cherry pick of fixing sticky issue (#1232) * fix: sticky event loop * chore: adjust script * 7.50.3 * fix: virtual scroll logic (#1240) * fix: scroll logic (#1239) * fix: scroll logic * fix: ci * chore: fix lint * 7.50.4 * fix: 7.x header blank when using sticky or scroll.y (#1268) * 7.50.5 * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * feat: test * test: update snapshot * chore: perf * test: update test case * chore: back of part * chore: fix ts --------- Co-authored-by: daisy <[email protected]> Co-authored-by: afc163 <[email protected]> Co-authored-by: 黄建峰 <[email protected]>
follow up #1231
发完得去浏览器实际验证一下
ref ant-design/ant-design#53085
Summary by CodeRabbit
Chores
New Features