Skip to content

Commit 412815a

Browse files
authored
Revert "Fix reader tap zones triggering after scrolling was stopped by the user" (#2670)
1 parent f7fb686 commit 412815a

File tree

2 files changed

+7
-20
lines changed

2 files changed

+7
-20
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
1010
- `Fixed` - for any bug fixes.
1111
- `Other` - for technical stuff.
1212

13-
## [Unreleased]
13+
## [v0.19.3] - 2025-11-07
1414
### Improved
15-
- Improved various aspects of the WebView multi window support added in 0.19.2 ([@TheUnlocked](https://github.com/TheUnlocked)) ([#2662](https://github.com/mihonapp/mihon/pull/2662))
15+
- Improved various aspects of the WebView multi window support ([@TheUnlocked](https://github.com/TheUnlocked)) ([#2662](https://github.com/mihonapp/mihon/pull/2662))
16+
17+
### Removed
18+
- Revert "Fix reader tap zones triggering after scrolling was stopped by the user" due to introduction of regression ([@AntsyLich](https://github.com/AntsyLich)) ([#2670](https://github.com/mihonapp/mihon/pull/2670))
1619

17-
## [v0.19.3] - 2025-11-04
1820
### Fixed
1921
- Fix WebView crash introduced in 0.19.2 ([@bapeey](https://github.com/bapeey)) ([#2649](https://github.com/mihonapp/mihon/pull/2649))
20-
- Fix long strip reader not scrolling on consecutive taps ([@AntsyLich](https://github.com/AntsyLich)) ([#2650](https://github.com/mihonapp/mihon/pull/2650))
2122
- Fix extra padding appearing in reader after user interactions ([@AntsyLich](https://github.com/AntsyLich)) ([#2669](https://github.com/mihonapp/mihon/pull/2669))
23+
- Fix long strip reader not scrolling on consecutive taps ([@AntsyLich](https://github.com/AntsyLich)) ([#2670](https://github.com/mihonapp/mihon/pull/2670))
2224

2325
## [v0.19.2] - 2025-11-02
2426
### Added

app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/webtoon/WebtoonRecyclerView.kt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.ui.reader.viewer.webtoon
22

33
import android.animation.AnimatorSet
44
import android.animation.ValueAnimator
5-
import android.annotation.SuppressLint
65
import android.content.Context
76
import android.util.AttributeSet
87
import android.view.HapticFeedbackConstants
@@ -35,10 +34,6 @@ class WebtoonRecyclerView @JvmOverloads constructor(
3534
private var firstVisibleItemPosition = 0
3635
private var lastVisibleItemPosition = 0
3736
private var currentScale = DEFAULT_RATE
38-
39-
private var isManuallyScrolling = false
40-
private var hasTappedWhileScrolling = false
41-
4237
var zoomOutDisabled = false
4338
set(value) {
4439
field = value
@@ -67,11 +62,7 @@ class WebtoonRecyclerView @JvmOverloads constructor(
6762
super.onMeasure(widthSpec, heightSpec)
6863
}
6964

70-
@SuppressLint("ClickableViewAccessibility")
7165
override fun onTouchEvent(e: MotionEvent): Boolean {
72-
if (e.actionMasked == MotionEvent.ACTION_DOWN) {
73-
hasTappedWhileScrolling = isManuallyScrolling
74-
}
7566
detector.onTouchEvent(e)
7667
return super.onTouchEvent(e)
7768
}
@@ -91,9 +82,6 @@ class WebtoonRecyclerView @JvmOverloads constructor(
9182
val totalItemCount = layoutManager?.itemCount ?: 0
9283
atLastPosition = visibleItemCount > 0 && lastVisibleItemPosition == totalItemCount - 1
9384
atFirstPosition = firstVisibleItemPosition == 0
94-
if (state == SCROLL_STATE_IDLE) {
95-
isManuallyScrolling = false
96-
}
9785
}
9886

9987
private fun getPositionX(positionX: Float): Float {
@@ -227,9 +215,7 @@ class WebtoonRecyclerView @JvmOverloads constructor(
227215
inner class GestureListener : GestureDetectorWithLongTap.Listener() {
228216

229217
override fun onSingleTapConfirmed(ev: MotionEvent): Boolean {
230-
if (!hasTappedWhileScrolling) {
231-
tapListener?.invoke(ev)
232-
}
218+
tapListener?.invoke(ev)
233219
return false
234220
}
235221

@@ -323,7 +309,6 @@ class WebtoonRecyclerView @JvmOverloads constructor(
323309

324310
if (startScroll) {
325311
isZoomDragging = true
326-
isManuallyScrolling = true
327312
}
328313
}
329314

0 commit comments

Comments
 (0)