Attach (recommended) or Link to PDF file here:
[pdf_form_js_validation_problem.pdf](https://github.com/mozilla/pdf.js/files/8357577/pdf_form_js_validation_problem.pdf)

Configuration:
- Web browser and its version: doesn't matter
- Operating system and its version: doesn't matter
- PDF.js version: current source code on GitHub; 2.13
- Is a browser extension: no

Steps to reproduce the problem:
1. Navigate to https://mozilla.github.io/pdf.js/web/viewer.html
2. Activate the hand tool 
3. open the attached PDF file
4. enter letters into the input field
5. click somewhere outside the input field to trigger validation --> there's no validation. Plus, the input is lost, but it re-appears after entering the input field again.
6. However, leaving the field using the TAB key does trigger validation

What is the expected behavior? (add screenshot)
<img width="1008" alt="image" src="https://user-images.githubusercontent.com/3045767/160281821-5ec9bfb3-2589-4c25-9063-aa7cd1c27240.png">


What went wrong? (add screenshot)
<img width="786" alt="image" src="https://user-images.githubusercontent.com/3045767/160281868-942eef4d-cac8-49e0-a8b9-47dcf803677f.png">

There's a conflict between these lines:
https://github.com/mozilla/pdf.js/blob/20d60d92ba3c701d79a62db2b8ff7899e752925e/web/grab_to_pan.js#L58
https://github.com/mozilla/pdf.js/blob/20d60d92ba3c701d79a62db2b8ff7899e752925e/web/grab_to_pan.js#L71

and this line:
https://github.com/mozilla/pdf.js/blob/869b396011b03d00325f2a5d5c01e58841efc312/web/pdf_scripting_manager.js#L157

After removing the last parameter from the grab_to_pan file (i.e. making it `this.element.removeEventListener("mousedown", this._onMouseDown)`), everything works as expected. Alternatively, I assume you could also add a `, true` to the pdf_scripting_manager line (but I didn't test it yet).

However, I don't know if there are side effects. Digging into the history of the grab-to-pan class reveals the additional parameter was there from day 1 of the external project written by @Rob--W (https://github.com/Rob--W/grab-to-pan.js), so I suspect it's not really necessary.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

this._destroyCapability = createPromiseCapability();
    if (this._scripting) {
      throw new Error("_createScripting: Scripting already exists.");
    }
    if (this._scriptingFactory) {
      return this._scriptingFactory.createScripting({
        sandboxBundleSrc: this._sandboxBundleSrc,
      });
    }
    if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("COMPONENTS")) {
      const { GenericScripting } = require("./generic_scripting.js");
      return new GenericScripting(this._sandboxBundleSrc);
    }
    throw new Error("_createScripting: Cannot create scripting.");
  }
  /**
   * @private
   */
  async _destroyScripting() {
    if (!this._scripting) {
      this._pdfDocument = null;
      this._destroyCapability?.resolve();
      return;
    }
    if (this._closeCapability) {
      await Promise.race([
        this._closeCapability.promise,
        new Promise(resolve => {