Fix floating-point error in navigate pan (#8856)

This commit is contained in:
stevenyomi 2023-01-08 04:09:10 +08:00 committed by GitHub
parent d8b528a4e0
commit 7b026cec8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ open class ReaderPageImageView @JvmOverloads constructor(
(pageView as? SubsamplingScaleImageView)?.let { view -> (pageView as? SubsamplingScaleImageView)?.let { view ->
RectF().let { RectF().let {
view.getPanRemaining(it) view.getPanRemaining(it)
return fn(it) > 0 return fn(it) > 1
} }
} }
return false return false