This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
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.
touchend事件处理的bug
当滑动listview后,再滑动回初始状态时,由于在
onChange
处理方法中有以下代码:而在
onTouchEnd
中有如下语句:这将导致往回滑动时,无法走下面的分支,效果如下:
https://github.com/prianyu/slide-view/blob/master/docs/0.gif
上面的判断条件应该为当满足这里两个条件的同时,满足当前slide滑动的距离为0
修改后效果如下:
https://github.com/prianyu/slide-view/blob/master/docs/1.gif