Changed default pager zoom style to ZOOM_FOCUS_CENTER (#2713)

Changed default pager zoom style to ZOOM_FOCUS_CENTER
This commit is contained in:
morcefaster 2020-03-15 22:02:40 +02:00 committed by Jay
parent ccbb806507
commit b345295f2c

View File

@ -344,7 +344,7 @@ class PagerPageHolder(
subsamplingImageView = SubsamplingScaleImageView(context).apply {
layoutParams = FrameLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT)
setMaxTileSize(viewer.activity.maxBitmapSize)
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED)
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_CENTER)
setDoubleTapZoomDuration(config.doubleTapAnimDuration)
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
setMinimumScaleType(config.imageScaleType)