pull/1395/head
gedoor 3 years ago
parent ce76bf5d81
commit c9d2fdde10
  1. 13
      app/src/main/java/io/legado/app/ui/widget/recycler/DragSelectTouchHelper.kt

@ -291,8 +291,17 @@ class DragSelectTouchHelper(
updateSelectedRange(rv, e) updateSelectedRange(rv, e)
} }
} }
MotionEvent.ACTION_CANCEL, MotionEvent.ACTION_UP -> selectFinished(mEnd) MotionEvent.ACTION_CANCEL, MotionEvent.ACTION_UP -> {
else -> { if (mSlideStateStartPosition != RecyclerView.NO_POSITION) {
selectFirstItem(mSlideStateStartPosition)
// selection is triggered
mSlideStateStartPosition = RecyclerView.NO_POSITION
Logger.i("onTouchEvent: after slide mode down")
}
if (!mIsInTopHotspot && !mIsInBottomHotspot) {
updateSelectedRange(rv, e)
}
selectFinished(mEnd)
} }
} }
} }

Loading…
Cancel
Save