Skip to content

Commit bd27763

Browse files
committed
Merge branch 'master' of https://github.com/yuriyskulskiy/AndroidPdfViewer into yuriyskulskiy-master
2 parents 6dd9d47 + 0c36f84 commit bd27763

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/DragPinchManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ void disable() {
6363
enabled = false;
6464
}
6565

66+
void disableLongpress(){
67+
gestureDetector.setIsLongpressEnabled(false);
68+
}
69+
6670
@Override
6771
public boolean onSingleTapConfirmed(MotionEvent e) {
6872
boolean onTapHandled = pdfView.callbacks.callOnTap(e);

android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,11 @@ public Configurator nightMode(boolean nightMode) {
14991499
return this;
15001500
}
15011501

1502+
public Configurator disableLongpress() {
1503+
PDFView.this.dragPinchManager.disableLongpress();
1504+
return this;
1505+
}
1506+
15021507
public void load() {
15031508
if (!hasSize) {
15041509
waitingDocumentConfigurator = this;

0 commit comments

Comments
 (0)