Attach (recommended) or Link to PDF file here:

Configuration:
- Web browser and its version: firefox 96.0
- Operating system and its version: Arch linux, sway (wayland)
- PDF.js version: Whatever came with the browser
- Is a browser extension: no

Steps to reproduce the problem:
1. Open any pdf, can reproduce it on https://mozilla.github.io/pdf.js/web/viewer.html
2. Scroll in with ctrl+mouse wheel using a normal mouse, not a touch pad.

Expected behaviour:
It zooms in with small steps. It can for example be the same steps as ctrl+plus.

Behaviour:
It scrolls in and out way to quickly. It jumps in the steps: 10%, 70%, 150%, 300%, 570%, 1000%.

Notes:
Cannot reproduce on chromium with the web viewer on https://mozilla.github.io/pdf.js/web/viewer.html
const cssTheme = AppOptions.get("viewerCssTheme");
    if (
      cssTheme === ViewerCssTheme.AUTOMATIC ||
      !Object.values(ViewerCssTheme).includes(cssTheme)
    ) {
      return;
    }
    try {
      const styleSheet = document.styleSheets[0];
      const cssRules = styleSheet?.cssRules || [];
      for (let i = 0, ii = cssRules.length; i < ii; i++) {
        const rule = cssRules[i];
        if (
          rule instanceof CSSMediaRule &&
          rule.media?.[0] === "(prefers-color-scheme: dark)"
        ) {
          if (cssTheme === ViewerCssTheme.LIGHT) {
            styleSheet.deleteRule(i);
            return;
          }
          
          const darkRules =
            /^@media \(prefers-color-scheme: dark\) {\n\s*([\w\s-.,:;/\\{}()]+)\n}$/.exec(
              rule.cssText
            );
          if (darkRules?.[1]) {
            styleSheet.deleteRule(i);
            styleSheet.insertRule(darkRules[1], i);
          }