WebGL: inconsistent mouse scroll values

I get inconsistent mouse scroll values on WebGL. I have the impression that touchpad scrolling breaks it.

This is the setup I have:

_controls.Mouse.MouseScrollY.performed += v =>
{
    float value = v.ReadValue<float>();
    UnityEngine.Debug.Log($"Scroll {value}");
};

Note: I’m on Windows.

For a desktop build, I get scroll steps of 120 (or -120) from mouse scroll. If I rotate the scroll wheel hard enough, the steps can become multiples of that 120. That is all good and consistent in itself.
It is also possible to trigger these scroll events by moving two fingers up/down on the touchpad. This time we get a bigger number of scroll events with smaller scroll values. That also works smoothly and consistent with the mouse scroll.

However, on WebGL, things are different. After starting the application, if I don’t touch any touchpad and do my scrolls through mouse only, things are the same as desktop. However, if at app startup I start scrolling with the touchpad, scrolling sensitivity becomes broken. The touchpad scrolling does not feel natural any more. And if I do mouse wheel scrolling afterwards, the scroll amounts are much bigger. I have seen values from 500, 1000, 2000, 4000 (even 12000, see below).

I have the impression that Unity tries to calibrate the scroll values from the first scroll events. If at app startup, I do touchpad scrolling very quickly, I get relatively small mousewheel scroll steps, like 500. Then, if I repeat mousewheel scrolling continuously, it decreases gradually to 120. [note: that decrease does not happen if I let the application rest for some time].
Instead, at app startup, I do touchpad scrolling as slow as I can. Values of 120 are reported as scroll values (they should have been much smaller). Then if I do mousewheel scrolling, I get scroll values of 12000! After some time, Unity seemingly detects that 12000 does not makes sense, and jumps back to 120.

Did anyone have an experience with that?

Note: I have tried different action types and control types. It didn’t change anything, although I’m not sure I tried all sensible combinations.

Indeed I’m having the exact same issue. Important thing to notice is that I get exactly the same values, 120, 12000, etc for exactly the same cases.
What I did was to detect this changes in values and create cases, though is not the best option.

For a similar issue for Mac, where the scroll wheel is oversensitive on WebGL for trackpad: I think the oversensitivity is mostly caused by inertial scroll events from the trackpad.

Unity could fix that by making use of this new event property (or we could try to patch the Unity generated .jslib somehow).