Skip to content

Commit

Permalink
Merge pull request #1 from yuriyskulskiy/disable_long_click_feature
Browse files Browse the repository at this point in the history
Add possibility to disable long click
  • Loading branch information
yuriyskulskiy committed Sep 25, 2018
2 parents 690e2cf + 4cbf115 commit 0c36f84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ void disable() {
enabled = false;
}

void disableLongpress(){
gestureDetector.setIsLongpressEnabled(false);
}

@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
boolean onTapHandled = pdfView.callbacks.callOnTap(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,11 @@ public Configurator nightMode(boolean nightMode) {
return this;
}

public Configurator disableLongpress() {
PDFView.this.dragPinchManager.disableLongpress();
return this;
}

public void load() {
if (!hasSize) {
waitingDocumentConfigurator = this;
Expand Down

0 comments on commit 0c36f84

Please sign in to comment.