|
@@ -110,7 +110,7 @@ open class ReaderPageImageView @JvmOverloads constructor(
|
|
|
|
|
|
private fun SubsamplingScaleImageView.landscapeZoom(forward: Boolean) {
|
|
|
if (config != null && config!!.landscapeZoom && config!!.minimumScaleType == SCALE_TYPE_CENTER_INSIDE && sWidth > sHeight && scale == minScale) {
|
|
|
- handler.postDelayed({
|
|
|
+ handler?.postDelayed({
|
|
|
val point = when (config!!.zoomStartPosition) {
|
|
|
ZoomStartPosition.LEFT -> if (forward) PointF(0F, 0F) else PointF(sWidth.toFloat(), 0F)
|
|
|
ZoomStartPosition.RIGHT -> if (forward) PointF(sWidth.toFloat(), 0F) else PointF(0F, 0F)
|