Repository: flutter
Issue: Can't scroll flutter web inside iframe when using iPhone mirroring
Labels: platform-ios,f: scrolling,platform-web,has reproducible steps,P3,team-ios,triaged-ios,found in release: 3.24,found in release: 3.27

### Steps to reproduce

When I try to scroll the flutter web app inside iframe when using iPhone mirroing, it doesn't works. For example, https://codepen.io/Liao-Han-the-encoder/full/ZEgEqaE. We can't scroll the inner context as we want. But it works in desktop browsers like Chrome, Safari.

1. Create a flutter web with a long list;
2. Embed it into an iframe and open it in the iOS Safari.
3. Using iPhone mirroing to scroll it.

https://codepen.io/Liao-Han-the-encoder/full/ZEgEqaE
You can directly open this link.

https://github.com/user-attachments/assets/393a89c8-4a4d-41ff-ac85-b3c0ca5ac7fc



### Expected results

Scroll correctly.

### Actual results

Can't scroll the inner content.

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

<iframe src="https://flutter.github.io/samples/web/material_3_demo/" frameborder="0" width="400" height="1000"></iframe>

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.24.1, on macOS 15.0 24A335 darwin-x64, locale en-US)
    • Flutter version 3.24.1 on channel stable at /Users/derekliao/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5874a72aa4 (5 weeks ago), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/derekliao/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    ✗ CocoaPods not installed.
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      For installation instructions, see https://guides.cocoapods.org/using/getting-started.html#installation

[✓] 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)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 81.1.3
    • Dart plugin version 242.22855.32

[✓] VS Code (version 1.93.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Eric’s iPhone (mobile) • 00008120-000E38E426EBC01E • ios            • iOS 18.1 22B5045g
    • macOS (desktop)        • macos                     • darwin-x64     • macOS 15.0 24A335 darwin-x64
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 129.0.6668.58

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.
```
</details>