DImuthuUpe / AndroidPdfViewer

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

Unable to disable swipe #1014

Open spapapan opened 3 years ago

spapapan commented 3 years ago

When I set enableSwipe to false, I can still swipe through the pages. The only difference when I set enableSwipe(true) is that, the swiping begins when I touch the View. When it's set to false, it doesn't swipe until I stop touching the View.

pdfView.fromStream(inputStream)
                .onLoad(this)
                .onError(this)
                .enableSwipe(false) 
                .swipeHorizontal(false)
                .enableDoubletap(enableDoubletap)
                .defaultPage(defaultPage)
                .enableAnnotationRendering(false) // render annotations (such as comments, colors or forms)
                .enableAntialiasing(true) // improve rendering a little bit on low-res screens
                .load();        

How to fix this?

Krishnakumar59 commented 3 years ago

have to got this issue or not i am getting this error help me out

https://github.com/barteksc/AndroidPdfViewer/issues/1013

Krishnakumar59 commented 3 years ago

instead of using this call methods directly try once

taichushouwang commented 3 years ago

@spapapan Maybe the enableDoubletap cause this problem, try to set enableDoubletap(false).