Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

Conversation

@xfarrow
Copy link

@xfarrow xfarrow commented Aug 12, 2022

This has been brought up by issue #174

This has been brought up by issue chxp82q#174 in the base repo
The Library "barteksc - AndroidPdfViewer" had a zoom limit of 10x (variable MAXIMUM_ZOOM in class "Pinch.java" in said Library) which did not allow to pinch over that value (methid "onScale" in class "DragPinchManager.java"). Nonethless, it was possible to double-tap-to-zoom to any value, even above 10x, causing a poor UX.

For this reason, the maximum zoom has been set at 10x with a SeekBar, instead of using an EditText which allowed any value.
The seekbar has values from 0 to 9 to which 1 is added in the PDF's max zoom properties. Hence the default value 4 will produce a 5x maximum zoom.
Fixed a bug which allowed to have a medium zoon greater than the maximum zoom.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant