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

feat:iOS端增加自定义滑动操作耗时的方法,避免滑动过快触发的惯性滑动 #88

Merged

Conversation

caofengbin
Copy link
Contributor

@caofengbin caofengbin commented Jun 20, 2023

Whether this PR is eventually merged or not, Sonic will thank you very much for your contribution.

无论此PR最终是否合并,Sonic组织都非常感谢您的贡献。

Checklist

  • The title starts with fix, fea, or doc. | 标题为fix、feat或doc开头。
  • I have checked that there are no duplicate pull requests with this request. | 我已检查没有与此请求重复的拉取请求。
  • I have considered and confirmed that this submission is valuable to others. | 我已经考虑过,并确认这份呈件对其他人很有价值。
  • I accept that this submission may not be used. | 我接受此提交可能不会被使用。

Description

现有的基于/wda/touch/multi/perform接口实现的滑动方法,实际完成滑动操作是在一瞬间完成的,当滑动距离过近时,会触发长列表的惯性滑动事件,可能导致目标元素被滚出屏幕外。查看wda的代码,可以基于/wda/pressAndDragWithVelocity实现指定滑动完成时间的效果。方法参数设置为毫秒,与安卓对齐。

自测iOS 16.3与iOS 15.3.1系统正常。

@prlabeler prlabeler bot added the feature label Jun 20, 2023
Copy link
Member

@ZhouYixun ZhouYixun left a comment

Choose a reason for hiding this comment

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

mg

@ZhouYixun ZhouYixun merged commit 3d07dbd into SonicCloudOrg:main Jun 21, 2023
1 check passed
@caofengbin caofengbin deleted the feature/add_ios_swipe_target_time branch June 21, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants