Don't respond to touch events when scrolling
This commit is contained in:
1 parent
f0c933d97a
commit
8160991086
1 file changed
+3
-1
+3
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user