Repository: flutter
Issue: [web] enabling semantics breaks scrolling
Labels: framework,a: accessibility,f: scrolling,platform-web,has reproducible steps,P2,team-web,triaged-web,found in release: 3.24,found in release: 3.27

### Steps to reproduce

Create a page containing two nested widgets that can be scrollable. E.g. a SingleChildScrollView containing a TextField, or TabView containing a SingleChildScrollView. The nested Widget does not have to  be actually scrollable. E.g. it could be a single line TextField or a ListView using NeverScrollPhysics and the issue would still occur.

Enable the Semantics tree.

Run the app in a browser.

Scroll the outer widget.

### Expected results

The outer scrollable Widget should smoothly scroll from top to bottom.

### Actual results

When scrolling over the nested Widget, the scroll offset suddenly jumps to a new position, skipping a substantial amount of the scrollable area.

If the semantics tree is disabled, scrolling works as expected. Surprisingly the jumps also occur even if the nested widget is not actually scrollable. For example a TextField with a fixed amount of lines will also trigger the jumping behaviour wehen scrolling over it.

The same issue was also encountered for a TabView with a nested SingleChildScrollView and a SingleChildScrollView containing a ListView (event when setting scrollPhysics to NeverScrollPhysics).

### Code sample

For a minimal example of the issue, please see https://dartpad.dev/?id=7339cf7cdd671341c70b59356571e949


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://github.com/user-attachments/assets/d97769ca-41a9-41a5-95b0-49c5a0948a77

</details>


### Logs

_No response_

### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.24.4, on macOS 15.0.1 24A348 darwin-arm64, locale de-DE)
    • Flutter version 3.24.4 on channel stable at /Applications/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (6 weeks ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/tauu/Library/Android/sdk
    • Platform android-34, build-tools 33.0.0
    • ANDROID_HOME = /Users/tauu/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/tauu/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    ✗ Unable to get list of installed Simulator runtimes.
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.94.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • iPhone von Georg (mobile)       • 00008030-0019742934DA802E • ios            • iOS 18.0.1 22A3370
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.0.1 24A348 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.0.1 24A348 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 131.0.6778.86
    ! Error: Browsing on the local area network for Apple Watch von Georg. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
```

</details>