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

add moved condition #105

Merged
merged 2 commits into from Mar 22, 2018
Merged

add moved condition #105

merged 2 commits into from Mar 22, 2018

Conversation

zsusyt
Copy link

@zsusyt zsusyt commented Mar 20, 2018

If somebody ever moved his finger somewhere and (maybe not intended)back to the first place, in this condition, I think he will not want to dispatch the tap event.So, I added the ever moved condition. Hope to take my advice.
如果某人把手指移动到了某个地方后又(可能无意识的)移动回了初始触摸点附近,在这种情况下,他可能并不想触发tap事件,所以我添加了对这种情况的判断。代码中以10px为临界点,是因为觉得30px有点大。希望能合并我的代码。

@dntzhang
Copy link

把 let 改成 var 我再合啊~~

@zsusyt
Copy link
Author

zsusyt commented Mar 22, 2018

改好了

@dntzhang dntzhang merged commit fbd8809 into AlloyTeam:master Mar 22, 2018
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.

None yet

2 participants