TalbotGooday / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
31 stars 23 forks source link

Provided option to perform page snap without animation #5

Closed muthuraj57 closed 2 years ago

muthuraj57 commented 3 years ago

I had a use case where I have to disable page swipe and jump to pages programmatically where I should show one page at a time. To center the page in the view, I call performPageSnap from onPageChange listener, but this page snap is done with an animation which is not needed for me. So I gave an option to perform page snap without animation in this PR.