Skip to content

Commit

Permalink
提升一下对触摸事件响应的优先级
Browse files Browse the repository at this point in the history
  • Loading branch information
XuQK committed Sep 16, 2020
1 parent 6b352a7 commit 34cfe5d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class KDTabLayout @JvmOverloads constructor(
when (ev.action) {
MotionEvent.ACTION_DOWN -> {
lastX = ev.rawX
parent?.requestDisallowInterceptTouchEvent(true)
if (!scroller.isFinished) {
scroller.abortAnimation()
return true
Expand Down

0 comments on commit 34cfe5d

Please sign in to comment.