Skip to content

Conversation

@NtskwK
Copy link
Contributor

@NtskwK NtskwK commented Dec 30, 2025

Power by Claude Opus 4.5

Summary by Sourcery

在 Python 绑定中新增对 Scroll 动作的支持,并定义其对应的结果类型。

新功能:

  • 在 Python 绑定的动作定义中加入一个新的 Scroll 动作枚举值。
  • 定义 ScrollActionResult 数据类,用于携带水平和垂直滚动偏移量。
  • 扩展动作到结果类型的映射,以便为 Scroll 动作包含新的 ScrollActionResult
Original summary in English

Summary by Sourcery

Add support for a new Scroll action in the Python binding and define its corresponding result type.

New Features:

  • Introduce a Scroll action enum value in the Python binding action definitions.
  • Define a ScrollActionResult dataclass carrying horizontal and vertical scroll offsets.
  • Extend the action-to-result type mapping to include the new ScrollActionResult for Scroll actions.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

嗨,我已经检查过你的更改了,看起来很棒!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@NtskwK NtskwK changed the title feat(binding): add scroll action and result handling feat(binding): add scroll action and result handling for python binding Dec 30, 2025
@NtskwK
Copy link
Contributor Author

NtskwK commented Dec 30, 2025

#1011 用ai糊了一个

@overflow65537
Copy link
Contributor

#1011 用ai糊了一个

能跑

@MistEO MistEO merged commit 49d01e9 into MaaXYZ:main Dec 31, 2025
19 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.

3 participants