Ignore long strip taps confirmed after the reader is gone

This commit is contained in:
AntsyLich
2026-10-12 22:33:31 +06:00
parent 2df48e19a1
commit c371d6331d
2 changed files with 4 additions and 1 deletions
@@ -243,7 +243,9 @@ class WebtoonRecyclerView @JvmOverloads constructor(
inner class GestureListener : GestureDetectorWithLongTap.Listener() {
override fun onSingleTapConfirmed(ev: MotionEvent): Boolean {
if (!tapDuringManualScroll) {
// A tap is confirmed after a delay, by when the reader can be gone, and scrolling a detached list
// lays out pages that can't compose
if (!tapDuringManualScroll && isAttachedToWindow) {
tapListener?.invoke(ev)
}
return false