Fix scroll

This commit is contained in:
Lucas Lima 2020-03-10 20:23:32 -03:00
parent fa6490c764
commit 5098450e8f
No known key found for this signature in database
GPG key ID: C828A958035D9C34

View file

@ -22,8 +22,8 @@ class UnlockedHorizontalScrollView : HorizontalScrollView {
@SuppressLint("ClickableViewAccessibility")
override fun onTouchEvent(event: MotionEvent): Boolean =
super.onTouchEvent(event) || (recyclerView?.onTouchEvent(event) ?: false)
super.onTouchEvent(event) or (recyclerView?.onTouchEvent(event) ?: false)
override fun onInterceptTouchEvent(event: MotionEvent): Boolean =
super.onInterceptTouchEvent(event) || (recyclerView?.onInterceptTouchEvent(event) ?: false)
super.onInterceptTouchEvent(event) or (recyclerView?.onInterceptTouchEvent(event) ?: false)
}