Repository: flutter
Issue: [iOS] In dual-screen mode on my MacBook, I'm experiencing an issue where button touch events are not being registered when I drag back and forth between different screens
Labels: platform-ios,engine,has reproducible steps,P3,platform-host-arm,team-ios,triaged-ios,found in release: 3.16,found in release: 3.17

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Create a basic sample flutter project
2. flutter build ios
3. Using Xcode building a iOS app (not build macOS) and running on MacOS system (Runner -> My Mac)
4. My MacBook will be connected to another monitor with a different resolution.
5. Drag the flutter window to the other screen and back
6. Click the button (See attach video)

 * I have been testing 3.13.9 & 3.16.1 flutter SDK version

 * There is a difference in window behavior between these versions...


### Expected results

Can tap the button when the resolution changed.

### Actual results

Can not tap any button until refresh the window by resize gesture.


### Screenshots or Video



V 3.13.9

https://github.com/flutter/flutter/assets/6585028/ce7f8536-ac03-452c-9772-d02893f9ccc8

V3.16.1

https://github.com/flutter/flutter/assets/6585028/5d1724b2-5dcb-4ef5-8d30-8586b8c7b8d4


### Flutter Doctor output

[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1.1 23B81 darwin-arm64, locale zh-Hant-TW)
    • Flutter version 3.13.9 on channel stable at /Users/chupa/fvm/versions/3.13.9
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (5 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/chupa/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.14.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • 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.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.82.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)
    • SM T820 (mobile) • 804aec3701e8cf48 • android-arm64  • Android 9 (API 28)
    • macOS (desktop)  • macos            • darwin-arm64   • macOS 14.1.1 23B81 darwin-arm64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 118.0.5993.117
    ! Error: Browsing on the local area network for QQ的iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.