allow clicking through the fastscroller when scrolling is disabled
This commit is contained in:
parent
da9cc609b0
commit
b5d0e91c16
1 changed files with 5 additions and 1 deletions
|
@ -185,7 +185,11 @@ class FastScroller : FrameLayout {
|
|||
|
||||
override fun onTouchEvent(event: MotionEvent): Boolean {
|
||||
// allow dragging only the handle itself
|
||||
if (!handle!!.isSelected && isScrollingEnabled) {
|
||||
if (!isScrollingEnabled) {
|
||||
return super.onTouchEvent(event)
|
||||
}
|
||||
|
||||
if (!handle!!.isSelected) {
|
||||
if (isHorizontal) {
|
||||
val min = handle!!.x
|
||||
val max = min + handleWidth
|
||||
|
|
Loading…
Reference in a new issue