mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Ignore long strip taps confirmed after the reader is gone
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user