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

屏幕缩放的api无法使用,请问下目前现在支持吗 #8

Open
alisleepy opened this issue Oct 15, 2024 · 6 comments
Open

Comments

@alisleepy
Copy link

image
再请问下,再使用这两个方法进行屏幕的缩放时,发现一直提示没有该属性,请问现在支持吗
image

@codematrixer
Copy link
Owner

xpath定位不支持这些方法呢,你看下文档

@alisleepy
Copy link
Author

alisleepy commented Oct 15, 2024

哦哦,是常规选择器才支持这种操作,但刚试了下,发现2个体验问题:
1、使用pinch_in时,开始滑动的横坐标可以自定义或者坐标值小一点吗,比如现在默认好像是开始滑动的坐标点为(0.1, 0.5)和(0.9,0.5),现在滑动直接触发了手机的左滑等手势,希望横坐标适当居中一点,改为(0.2,0.5)和(0.8, 0.5)这种
2、使用pinch_out时,默认的参数scale=2,但实际效果看着放大了很多,不仅仅是2倍

@codematrixer
Copy link
Owner

只能你自己自定义 scale ,可以多试几个,设置一个合适的值

@alisleepy
Copy link
Author

那问题1目前会触发手机的一些手势,导致缩放无法生效,比如会把手机的侧边栏拉出来

@codematrixer
Copy link
Owner

你们是啥app,发布了么,我可以体验么

@alisleepy
Copy link
Author

没有发布,这个操作和APP其实关系不大,只要调用这个方法触发滑动操作,就会触发手机的手势,手机是华为Mate60Pro,鸿蒙Next系统,我给你个截图,效果就是这种
b3027a1b8ee86c845bfcfd74a4411b59

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