For reference:
https://github.com/mozilla/pdf.js/issues/15571#issuecomment-1278141781
const isMac = KeyboardManager.platform.isMac;
    if (event.button !== 0 || (event.ctrlKey && isMac)) {
      
      return;
    }
    if (event.target !== this.div) {
      return;
    }
    this.#hadPointerDown = true;
    const editor = this.#uiManager.getActive();
    this.#allowClick = !editor || editor.isEmpty();
  }
  /**
   * Drag callback.
   * @param {DragEvent} event
   */
  drop(event) {