Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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有点大。希望能合并我的代码。