docs: translate scroll wheel actions documentation to Chinese#2551
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
Code Review by Qodo
Context used✅ Compliance rules (platform):
10 rules 1. Heading origin mismatch
|
| ## 从给定元素的原点偏移量处滚动指定的距离 | ||
|
|
||
| The final scenario is used when you need to scroll only a portion of the screen, | ||
| and it is already inside the viewport. | ||
| 最后一种情况适用于您需要滚动屏幕的某一部分, | ||
| 而该部分已处于视口内的情况. | ||
|
|
||
| This uses the "Scroll From" method again, but the viewport is designated instead | ||
| of an element. An offset is specified from the upper left corner of the | ||
| current viewport. After the origin point is determined, | ||
| the page will be scrolled by the provided delta x and delta y values. | ||
| 这再次使用了“从...滚动”的方法, 但这次指定的是视口而非某个元素. | ||
| 从当前视口的左上角开始指定偏移量. | ||
| 确定原点后, 页面将根据提供的 x 偏移量和 y 偏移量进行滚动. |
There was a problem hiding this comment.
1. Heading origin mismatch 🐞 Bug ≡ Correctness
In the final scenario, the section heading says the scroll origin is an element, but the body text (and the English source) describes scrolling from the viewport origin; this is contradictory and can mislead readers about which API scenario is being documented.
Agent Prompt
### Issue description
The final section heading claims the origin is an element (元素), but the section’s explanation says the origin is the viewport (视口). This mismatch is confusing and makes the translated section internally inconsistent.
### Issue Context
The English source for the same section describes using the viewport as the origin point.
### Fix Focus Areas
- website_and_docs/content/documentation/webdriver/actions_api/wheel.zh-cn.md[146-153]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| 要执行此操作, 请使用“从...滚动”方法, | ||
| 该方法需要 3 个参数. | ||
| 第一个参数表示起始点, 我们将其指定为元素, | ||
| 后两个参数分别是 x 偏移量和 y 偏移量的值. |
There was a problem hiding this comment.
2. Unintended hard line breaks 🐞 Bug ⚙ Maintainability
Lines in the “从...滚动” section include double trailing spaces, which Markdown interprets as explicit hard line breaks; this can create inconsistent rendering and is the kind of whitespace change called out as risky in the repo’s PR review guidelines.
Agent Prompt
### Issue description
A couple of lines end with two trailing spaces, which forces a hard line break in Markdown rendering. This can lead to unexpected formatting differences vs other pages that use semantic linefeeds without forced breaks.
### Issue Context
The repository review guidelines explicitly warn that small whitespace changes can break rendered documentation.
### Fix Focus Areas
- website_and_docs/content/documentation/webdriver/actions_api/wheel.zh-cn.md[79-82]
- .github/pr_review.md[7-9]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
User description
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.
Description
translate scroll wheel actions documentation to Chinese
Motivation and Context
Types of changes
Checklist
PR Type
Documentation
Description
Translates scroll wheel actions documentation to Chinese
Updates all section headings and body text to Chinese
Maintains original document structure and code examples
Improves formatting with better line breaks for readability
Diagram Walkthrough
File Walkthrough
wheel.zh-cn.md
Complete Chinese translation of wheel documentationwebsite_and_docs/content/documentation/webdriver/actions_api/wheel.zh-cn.md