Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

快速滑动时SlideBackIconView没有到最大状态的问题 #8

Closed
g19980115 opened this issue Aug 6, 2019 · 3 comments · Fixed by #9
Closed

快速滑动时SlideBackIconView没有到最大状态的问题 #8

g19980115 opened this issue Aug 6, 2019 · 3 comments · Fixed by #9

Comments

@g19980115
Copy link
Contributor

看这个代码:

if (moveXLength / dragRate <= maxSlideLength) {
   // 如果位移距离在可拉动距离内,更新SlideBackIconView的当前拉动距离并重绘,区分左右
    if (isAllowEdgeLeft && isSideSlideLeft) {
         slideBackIconViewLeft.updateSlideLength(moveXLength / dragRate);
     } else if (isAllowEdgeRight && isSideSlideRight) {
         slideBackIconViewRight.updateSlideLength(moveXLength / dragRate);
     }
}

举个栗子,先只滑到一半,然后突然滑到超过maxSlideLength,SlideBackIconView是不是就没有更新了?状态还维持在一半的时候

g19980115 added a commit to g19980115/SlideBack that referenced this issue Aug 6, 2019
@g19980115
Copy link
Contributor Author

修复这个问题的代码已经提交pr了

@ParfoisMeng
Copy link
Owner

的确会有这个问题。
PR代码看了,已修复。
但是。。为什么不格式化呢。。。🌚🌚🌚

@g19980115
Copy link
Contributor Author

漏了一步😅

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants