Skip to content
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

[Feature Request] driver.swipe可否增加指定位置滑动 #2

Open
kkppa opened this issue Sep 28, 2024 · 3 comments
Open

[Feature Request] driver.swipe可否增加指定位置滑动 #2

kkppa opened this issue Sep 28, 2024 · 3 comments

Comments

@kkppa
Copy link
Contributor

kkppa commented Sep 28, 2024

参考uiautomator2的SwipeExt 扩展功能

d.swipe_ext("right") # 手指右滑,4选1 "left", "right", "up", "down"
d.swipe_ext("right", scale=0.9) # 默认0.9, 滑动距离为屏幕宽度的90%
d.swipe_ext("right", box=(0, 0, 100, 100)) # 在 (0,0) -> (100, 100) 这个区域做滑动
@codematrixer
Copy link
Owner

欢迎提PR

@kkppa
Copy link
Contributor Author

kkppa commented Oct 8, 2024

欢迎提PR

已经提交 #5

@codematrixer
Copy link
Owner

DONE https://github.com/codematrixer/hmdriver2/releases/tag/1.2.11

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

No branches or pull requests

2 participants