From f28419ce3f1223e8c032bccacd0ca7caf8e80bcf Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Mon, 26 Apr 2021 15:05:39 -0400 Subject: [PATCH] removed logic to try and fix the fast scroll It just can't be fixed... --- .../tachiyomi/ui/base/MaterialFastScroll.kt | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialFastScroll.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialFastScroll.kt index 5cd498eda7..e317cfdf75 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialFastScroll.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/MaterialFastScroll.kt @@ -70,22 +70,6 @@ class MaterialFastScroll @JvmOverloads constructor(context: Context, attrs: Attr MotionEvent.ACTION_UP, MotionEvent.ACTION_CANCEL -> { startY = 0f canScroll = false - val newEvent = MotionEvent.obtain(event) - recyclerView.post { - // Mimic touch event for recycler so it doesn't scroll back - val lastTag = recyclerView.tag - recyclerView.tag = noUpdate - newEvent.action = MotionEvent.ACTION_MOVE - recyclerView.dispatchTouchEvent(newEvent) - val newEvent2 = MotionEvent.obtain(newEvent) - newEvent2.action = MotionEvent.ACTION_CANCEL - recyclerView.dispatchTouchEvent(newEvent2) - newEvent2.recycle() - newEvent.recycle() - recyclerView.post { - recyclerView.tag = lastTag - } - } } } return super.onTouchEvent(event)