Skip to content

Can't scroll flutter web inside iframe when using iPhone mirroring #155593

@RingoTC

Description

@RingoTC

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.

Screen.Recording.2024-09-24.at.16.46.01.mov

Expected results

Scroll correctly.

Actual results

Can't scroll the inner content.

Code sample

Code sample
[Paste your code here]
<iframe src="https://flutter.github.io/samples/web/material_3_demo/" frameborder="0" width="400" height="1000"></iframe>

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectf: scrollingViewports, list views, slivers, etc.found in release: 3.24Found to occur in 3.24found in release: 3.27Found to occur in 3.27has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyplatform-webWeb applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions