Skip to content

Commit

Permalink
Don't respond to touch events when scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
FooIbar committed Aug 22, 2023
1 parent f0c933d commit 8160991
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ class WebtoonRecyclerView @JvmOverloads constructor(
}

override fun onTouchEvent(e: MotionEvent): Boolean {
detector.onTouchEvent(e)
if (scrollState == SCROLL_STATE_IDLE) {
detector.onTouchEvent(e)
}
return super.onTouchEvent(e)
}

Expand Down

0 comments on commit 8160991

Please sign in to comment.