Use ACTION_UP

This commit is contained in:
Luna712 2024-06-12 20:01:09 -06:00 committed by GitHub
parent 81ae8b6591
commit b3af98cae0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,7 +411,7 @@ class SwipeToDeleteCallback(private val adapter: DownloadHeaderAdapter) : ItemTo
if (dX <= -swipeDistance && !isCurrentlyActive) { if (dX <= -swipeDistance && !isCurrentlyActive) {
recyclerView.setOnTouchListener { _, event -> recyclerView.setOnTouchListener { _, event ->
if (event.action == MotionEvent.ACTION_DOWN) { if (event.action == MotionEvent.ACTION_UP) {
val x = event.x.toInt() val x = event.x.toInt()
val y = event.y.toInt() val y = event.y.toInt()