Repository: flutter
Issue: GestureDetector breaks in Firefox if mouse exits window quickly
Labels: framework,f: gestures,platform-web,browser: firefox,P2,team-web,triaged-web

### 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. Open Firefox (using version 119.0.1 but older works too)
2. Navigate to https://dartpad.dev
3. Paste the provided code and run it
4. Pick up the `Draggable` widget
5. Fling the widget outside the bounds of the browser window in a fast motion and return to the window without releasing the widget

### Expected results

The `Draggable` widget keeps being responsive and can be dragged around further.

### Actual results

The `Draggable` widget becomes unresponsive, leaving a "dead" element on the screen.

Note that this issue is not specific to the `Draggable` widget but caused by the underlying `GestureDetector`, the `Draggable` widget is a simple showcase though.
The issue only appears in Firefox, both Chrome and Safari work as expected.

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Draggable(
        feedback: Text("dragging"),
        child: Text("drag me"),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Video demonstration</summary>

https://github.com/flutter/flutter/assets/4795467/070c1f4b-7a14-4ebc-a538-ceea7e60256e

</details>


### Logs

<details><summary>Logs</summary>
</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.6 22G120 darwin-arm64, locale de-DE)
    • Flutter version 3.13.9 on channel stable at /Users/btmo/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (2 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 34.0.0)
    • Android SDK at /Users/btmo/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • 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)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] 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.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.6 22G120 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.123

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>