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;
    }
    if (!this.#hadPointerDown) {
      
      
      
      
      return;
    }
    this.#hadPointerDown = false;
    if (!this.#allowClick) {
      this.#allowClick = true;
      return;
    }
    this.#createAndAddNewEditor(event);
  }
  /**
   * Pointerdown callback.
   * @param {PointerEvent} event
   */
  pointerdown(event) {