Skip to content

Commit

Permalink
修复loading动画结束后多余的fling事件导致动画轨迹混乱问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-v committed Feb 4, 2021
1 parent 13866c4 commit 1d524f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ open class ElasticLayout @JvmOverloads constructor(
/**
* 这个判断很 重要
*/
if (!allowFling) return
if (!allowFling || animator!=null) return
isFling = true
allowFling = true
if (abs(scrollOffset) >= 100 || abs(dx + dy) * dampingTemp < 10) {
Expand Down

0 comments on commit 1d524f4

Please sign in to comment.