Skip to content

Commit

Permalink
Improve zooming in the manga reader a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed May 1, 2019
1 parent 5e35ca5 commit d04bdfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/me/proxer/app/manga/MangaAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ class MangaAdapter(savedInstanceState: Bundle?, var isVertical: Boolean) : BaseA
private val shortAnimationTime = itemView.context.resources.getInteger(android.R.integer.config_shortAnimTime)

init {
image.setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_CENTER)
image.setMinimumScaleType(SubsamplingScaleImageView.SCALE_TYPE_START)
image.setPanLimit(SubsamplingScaleImageView.PAN_LIMIT_INSIDE)
image.setDoubleTapZoomDuration(shortAnimationTime)
image.setExecutor(AsyncTask.THREAD_POOL_EXECUTOR)
Expand Down

0 comments on commit d04bdfe

Please sign in to comment.