Repository: flutter
Issue: [Web]: Pointer acts incorrectly when typing at TextField wrapped in Stack
Labels: a: text input,framework,engine,platform-web,has reproducible steps,P2,found in release: 3.3,found in release: 3.6,team-web,triaged-web

## Steps to Reproduce

1. Create project with represented code sample. 
2. Run at Flutter Web (I use Chrome)
3. Click to TextField, write something
4. Move pointer to a Button 1

Expected result: Pointer is at click state
Actual result: Pointer is at text editing state

Note: Tried to wrap TextField with MouseRegion - didn't help
Note 2: Works properly if to run as desktop app on  macOs

How it works on web:

https://user-images.githubusercontent.com/17158960/202515244-ff808b02-2f46-4372-b563-cf7b1669c37d.mov


How it works on macOs:

https://user-images.githubusercontent.com/17158960/202515191-53c6067b-2946-4931-9790-8ef1b6b9c2ce.mov

<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 MaterialApp(
      title: 'Pointer at stack',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Padding(
        padding: const EdgeInsets.all(40.0),
        child: Stack(
          children: [
            const TextField(
              maxLines: 10,
            ),
            Positioned(
              top: 0,
              right: 0,
              child: TextButton(
                onPressed: () {},
                child: const Text('Button 1'),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

```

</details>

<details>
  <summary>Logs</summary>

```
Launching lib/main.dart on Chrome in debug mode...
lib/main.dart:1
This app is linked to the debug service: ws://127.0.0.1:56237/ue6ev_J_pzs=/ws
Debug service listening on ws://127.0.0.1:56237/ue6ev_J_pzs=/ws
💪 Running with sound null safety 💪
Connecting to VM Service at ws://127.0.0.1:56237/ue6ev_J_pzs=/ws
Flutter Web Bootstrap: Programmatic
```


```
Analyzing pointer_at_stack...                                           
No issues found! (ran in 2.2s)
```

```
[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6 21G115 darwin-x64, locale ru-RU)
    • Flutter version 3.3.8 on channel stable at /Users/dmitrijrepin/sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (9 days ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc2)
    • Android SDK at /Users/dmitrijrepin/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0-rc2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.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 11.0.10+0-b96-7281165)

[✓] IntelliJ IDEA Community Edition (version 2021.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • 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

[✓] VS Code (version 1.73.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.52.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.6 21G115 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 107.0.5304.110

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>