Skip to content

fix(maa): 修正触控 contact 兼容门控 - #17

Open
Craun718 wants to merge 1 commit into
Aliothmoon:mainfrom
Craun718:fix/multi-touch
Open

fix(maa): 修正触控 contact 兼容门控#17
Craun718 wants to merge 1 commit into
Aliothmoon:mainfrom
Craun718:fix/multi-touch

Conversation

@Craun718

@Craun718 Craun718 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

摘要

  • 按标准 SemVer 顺序解析 Framework 版本,包含预发布标识比较
  • 将 TouchArgs.contact 的读取门控调整为 AndroidNative 实际开始支持的 v5.13.0-beta.3
  • 覆盖 beta.2 / beta.3 / beta.5 以及非法预发布版本的行为

根因

v5.13.0-beta.5 之前被纯数字版本匹配误判为不支持读取 contact,导致 Framework 传入的多指 contact 在 native bridge 中被全部压成 0。App 侧因此把 5 根手指当成同一根手指维护:后续 down 被视为重复按下,第一根 up 后槽位清空,剩余 up 因找不到 contact 而失败。

验证

  • ./gradlew :app:testDebugUnitTest
  • ./gradlew :app:assembleDebug :app:lintDebug

@Craun718 Craun718 changed the title fix(maa): correct touch contact compatibility gate fix(maa): 修正触控 contact 兼容门控 Sep 1, 2026
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.

1 participant