From 7b026cec8d1e113f03c15642cba3d3c9601cd65e Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Sun, 8 Jan 2023 04:09:10 +0800 Subject: [PATCH] Fix floating-point error in navigate pan (#8856) --- .../eu/kanade/tachiyomi/ui/reader/viewer/ReaderPageImageView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderPageImageView.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderPageImageView.kt index f0ce3c27a0..49ad3fb1d1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderPageImageView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/viewer/ReaderPageImageView.kt @@ -176,7 +176,7 @@ open class ReaderPageImageView @JvmOverloads constructor( (pageView as? SubsamplingScaleImageView)?.let { view -> RectF().let { view.getPanRemaining(it) - return fn(it) > 0 + return fn(it) > 1 } } return false