mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 11:17:25 +01:00
Changed default pager zoom style to ZOOM_FOCUS_CENTER (#2713)
Changed default pager zoom style to ZOOM_FOCUS_CENTER
This commit is contained in:
parent
1ebcafb25d
commit
088f8b8b54
@ -303,7 +303,7 @@ class PagerPageHolder(
|
|||||||
subsamplingImageView = SubsamplingScaleImageView(context).apply {
|
subsamplingImageView = SubsamplingScaleImageView(context).apply {
|
||||||
layoutParams = FrameLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT)
|
layoutParams = FrameLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT)
|
||||||
setMaxTileSize(viewer.activity.maxBitmapSize)
|
setMaxTileSize(viewer.activity.maxBitmapSize)
|
||||||
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED)
|
setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_CENTER)
|
||||||
setDoubleTapZoomDuration(config.doubleTapAnimDuration)
|
setDoubleTapZoomDuration(config.doubleTapAnimDuration)
|
||||||
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
|
setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
|
||||||
setMinimumScaleType(config.imageScaleType)
|
setMinimumScaleType(config.imageScaleType)
|
||||||
|
Loading…
Reference in New Issue
Block a user