Repository: flutter
Issue: Cannot use track pad to scroll / pan in the `InteractiveViewer` on web
Labels: framework,f: gestures,platform-web,has reproducible steps,P2,team-web,triaged-web,found in release: 3.13,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. Run `flutter run` on the code sample on macos
2. Notice you can use the track pad to pan/scroll horizontally and vertically
3. Run `flutter run` on the code sample on web
4. 2. Notice you cannot use the track pad to pan/scroll horizontally and vertically



### Expected results

I expect to be able to use the trackpad to pan/scroll horizontally and vertically on web and macos

### Actual results

I'm only able to use the trackpad to pan/scroll horizontally and vertically on macos. It only allows scaling on web.

### Code sample

<details><summary>Code sample</summary>

It is the example from  https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html
or you can check-out https://github.com/ValentinVignal/flutter_app_stable/tree/flutter/scroll-with-interactive-viewer

```dart
import 'package:flutter/material.dart';

/// Flutter code sample for [InteractiveViewer].

void main() => runApp(const InteractiveViewerExampleApp());

class InteractiveViewerExampleApp extends StatelessWidget {
  const InteractiveViewerExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('InteractiveViewer Sample')),
        body: const InteractiveViewerExample(),
      ),
    );
  }
}

class InteractiveViewerExample extends StatelessWidget {
  const InteractiveViewerExample({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
      child: InteractiveViewer(
        boundaryMargin: const EdgeInsets.all(20.0),
        minScale: 0.1,
        maxScale: 1.6,
        child: Container(
          decoration: const BoxDecoration(
            gradient: LinearGradient(
              begin: Alignment.topCenter,
              end: Alignment.bottomCenter,
              colors: <Color>[Colors.orange, Colors.red],
              stops: <double>[0.0, 1.0],
            ),
          ),
        ),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

<table>
  <tr>
    <th>macOS</th>
    <th>Web</th>
  </tr>
  <tr>
    <td>

https://github.com/flutter/flutter/assets/32538273/53627f3c-e5aa-4dfd-952f-907b34f6786e

 </td>
    <td>


https://github.com/flutter/flutter/assets/32538273/ea6bcfe0-aded-4a87-9e98-31e153bd7a72



</td>
  </tr>
</table>
</details>


### Logs

<details><summary>Logs</summary>

Macos: 
```console
Building macOS application...                                           
Syncing files to device macOS...                                   110ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

A Dart VM Service on macOS is available at: http://127.0.0.1:57712/HsQPfYA_1FY=/
The Flutter DevTools debugger and profiler on macOS is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:57712/HsQPfYA_1FY=/
2023-11-07 11:48:55.545 flutter_app_stable[18836:163823] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.

Application finished.
```

Web: 

```console
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             24.7s
This app is linked to the debug service: ws://127.0.0.1:58189/4L3YL0adXrc=/ws
Debug service listening on ws://127.0.0.1:58189/4L3YL0adXrc=/ws

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

A Dart VM Service on Chrome is available at: http://127.0.0.1:58189/4L3YL0adXrc=
The Flutter DevTools debugger and profiler on Chrome is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:58189/4L3YL0adXrc=

Application finished.
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[!] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-x64, locale en-GB)
    • Flutter version 3.13.9 on channel stable at /Users/valentin/flutter/flutter
    ! Warning: `dart` on your path resolves to /usr/local/Cellar/dart/3.1.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/valentin/flutter/flutter. Consider adding
      /Users/valentin/flutter/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (12 days ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /usr/local/Caskroom/android-sdk/4333796
    • Platform android-33, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • 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.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.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 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.84.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.0 23A344 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 119.0.6045.105

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
```

</details>