Skip to content

Commit

Permalink
Close overlay popup once a page clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtcode committed Jun 14, 2024
1 parent efe4085 commit 690d68e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pdf/pdf-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2104,6 +2104,12 @@ class PDFView {
if (!this.action && event.target.classList.contains('textAnnotation')) {
return;
}

this._overlayPopupDelayer.close(() => {
this._selectedOverlay = null;
this._onSetOverlayPopup(null);
});

let position = this.pointerEventToPosition(event);

if (this.pointerDownPosition) {
Expand Down

0 comments on commit 690d68e

Please sign in to comment.