DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.05k stars 1.85k forks source link

when double tap or pinch , can't swipe horizontal #1108

Open bagwechien opened 1 year ago

bagwechien commented 1 year ago

When I use double tap to zoom the page, the first double tap, I can only swipe the page up and down, the second double tap, I can swipe left and right a little, but just a little bit, there is a large part of the page left and right will not be seen, this way It loses the meaning of zoom. Is there a solution to this?

Below is my code pdfView.fromFile(file) .enableSwipe(true) // allows to block changing pages using swipe .swipeHorizontal(true) // allows to you to change swiping position .enableDoubletap(true) // If you want you enable else "false" .defaultPage(1) // The default pdf page

        .load();
Basti189 commented 1 year ago

same issue with .pageFitPolicy(FitPolicy.BOTH)?