mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-13 00:05:08 +01:00
Fixed #435
This commit is contained in:
parent
d42b9c2598
commit
4e45a337da
@ -82,8 +82,8 @@ abstract class PagerViewer(val activity: ReaderActivity) : BaseViewer {
|
|||||||
pager.tapListener = { event ->
|
pager.tapListener = { event ->
|
||||||
val positionX = event.x
|
val positionX = event.x
|
||||||
when {
|
when {
|
||||||
positionX < pager.width * 0.33f -> if (config.tappingEnabled) moveLeft() else activity.toggleMenu()
|
positionX < pager.width * 0.33f && config.tappingEnabled -> moveLeft()
|
||||||
positionX > pager.width * 0.66f -> if (config.tappingEnabled) moveRight() else activity.toggleMenu()
|
positionX > pager.width * 0.66f && config.tappingEnabled -> moveRight()
|
||||||
else -> activity.toggleMenu()
|
else -> activity.toggleMenu()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,10 +97,10 @@ class WebtoonViewer(val activity: ReaderActivity, val isContinuous: Boolean = tr
|
|||||||
val positionX = event.rawX
|
val positionX = event.rawX
|
||||||
val positionY = event.rawY
|
val positionY = event.rawY
|
||||||
when {
|
when {
|
||||||
positionY < recycler.height * 0.25 -> if (config.tappingEnabled) scrollUp()
|
positionY < recycler.height * 0.25 && config.tappingEnabled -> scrollUp()
|
||||||
positionY > recycler.height * 0.75 -> if (config.tappingEnabled) scrollDown()
|
positionY > recycler.height * 0.75 && config.tappingEnabled -> scrollDown()
|
||||||
positionX < recycler.width * 0.33 -> if (config.tappingEnabled) scrollUp()
|
positionX < recycler.width * 0.33 && config.tappingEnabled -> scrollUp()
|
||||||
positionX > recycler.width * 0.66 -> if (config.tappingEnabled) scrollDown()
|
positionX > recycler.width * 0.66 && config.tappingEnabled -> scrollDown()
|
||||||
else -> activity.toggleMenu()
|
else -> activity.toggleMenu()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user