Release v1.12.0-beta.1版本支持滑动操作了,求一个滑动操作规则说明/模板 #1328
Answered
by
Lin-arm
lhj1618GitHub
asked this question in
Q&A
-
|
没找到滑动相关说明文档,求一个滑动操作规则说明/模板 |
Beta Was this translation helpful? Give feedback.
Answered by
Lin-arm
Apr 7, 2026
Replies: 1 comment
-
|
https://gkd.li/api/interfaces/RawRuleProps#swipearg https://gkd.li/api/type-aliases/SwipeArg 上滑的,其它方向的自己改。 {
id: 'com.ss.android.ugc.aweme.lite', // (可改为其它支持上滑的应用测试)
name: 'dy极速版',
groups: [
{
key: 666,
name: '测试-上滑',
desc: '进视频页1.5s后,只上滑1次',
rules: [
{
fastQuery: true,
matchRoot: true,
actionMaximum: 1,
actionDelay: 1500, //延时1.5秒
action: 'swipe', //滑动
swipeArg: {
start: { //起始坐标
x: 'width * 0.5',
y: 'height * 0.7'
},
end: { //终点坐标
x: 'width * 0.5',
y: 'height * 0.3'
},
duration: 900, //滑动时长
},
matches: '[parent=null]', //根节点
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity', //视频页, (可换成其它支持上滑的 activityId 测试)
},
],
},
],
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lisonge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

https://gkd.li/api/interfaces/RawRuleProps#swipearg
https://gkd.li/api/type-aliases/SwipeArg
上滑的,其它方向的自己改。
另外建议到设置那里开 轨迹提示 测试。