Repository: flutter
Issue: Fling value is not get from the onPointerPanZoomUpdate callback after perform trackpad scroll
Labels: framework,f: gestures,a: desktop,has reproducible steps,P2,found in release: 3.10,found in release: 3.11,team-framework,triaged-framework

### 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

Run a below-shared code snippet as mentioned, while performing mouse wheel zooming in the trackpad using the onPointerSignal event it gives scrollDelta value after some time lifting the finger up on the trackpad but in onPointerPanZoomUpdate, it is not working as same.

* Run a sample in **windows** or **macOS** with the latest flutter SDK version (the fling effect is not working in onPointerPanZoomUpdate)


### Expected results

![210278010-15ead221-74cb-40a2-9ec6-492e4641beb5](https://github.com/flutter/flutter/assets/61863686/0be5be8b-7ee5-4c01-9fdb-6df112863f28)


### Actual results

![210278295-8329b1a4-ecab-4de6-a23b-e34452131103](https://github.com/flutter/flutter/assets/61863686/1f0e50f0-18fc-4d26-8c05-f20d10656c38)


### Code sample

Sample with onPointerPanZoomUpdate event where filing effect is not working:

<details><summary>Code sample</summary>

```dart
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:vector_math/vector_math_64.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(),
      home: const ZoomableWidget(),
    );
  }
}

class ZoomableWidget extends StatefulWidget {
  
  const ZoomableWidget({Key? key}) : super(key: key);
  @override
  _ZoomableWidgetState createState() => _ZoomableWidgetState();
}

class _ZoomableWidgetState extends State<ZoomableWidget> {
  double _scale = 1.0;
  double _oldScale = 1.0;
  Matrix4? transform = Matrix4.diagonal3(
      Vector3(1.0.clamp(1.0, 5.0), 1.0.clamp(1.0, 5.0), 1.0.clamp(1.0, 5.0)));
  @override
  Widget build(BuildContext context) {
    return Listener(
      onPointerPanZoomStart: (event) {
        print('start');
      },
      onPointerPanZoomUpdate: (PointerPanZoomUpdateEvent event) {
        event.position;
        setState(() {
          _scale = _oldScale + (event.panDelta.dy / 180);
          print(_scale);
          _oldScale = _scale;
        });
      },
      onPointerPanZoomEnd: (event) {
        print('end');
      },
      child: Transform(
        transform: //transform!,
            Matrix4.diagonal3(Vector3(_scale.clamp(1.0, 5.0),
                _scale.clamp(1.0, 5.0), _scale.clamp(1.0, 5.0))),
        alignment: FractionalOffset.center,
        child: const Image(image: AssetImage('images/owel.jpg')),
      ),
    );
  }
}
```

</details>



Below sample with onPointerSignal event where filing effect is working:

<details><summary>Code sample</summary>

```dart
import 'package: flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:vector_math/vector_math_64.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(),
      home: const ZoomableWidget(),
    );
  }
}

class ZoomableWidget extends StatefulWidget {
  const ZoomableWidget({Key? key}) : super(key: key);
  @override
  _ZoomableWidgetState createState() => _ZoomableWidgetState();
}

class _ZoomableWidgetState extends State<ZoomableWidget> {
  double _scale = 1.0;
  double _oldScale = 1.0;
  Matrix4? transform = Matrix4.diagonal3(
      Vector3(1.0.clamp(1.0, 5.0), 1.0.clamp(1.0, 5.0), 1.0.clamp(1.0, 5.0)));
  @override
  Widget build(BuildContext context) {
    return Listener(
      onPointerSignal: (PointerSignalEvent event) {
        if (event is PointerScrollEvent) {
          setState(() {
            _scale = _oldScale + (event.scrollDelta.dy / 180);
            print(_scale);
            _oldScale = _scale;
          });
        }
      },
      child: Transform(
        transform: //transform!,
            Matrix4.diagonal3(Vector3(_scale.clamp(1.0, 5.0),
                _scale.clamp(1.0, 5.0), _scale.clamp(1.0, 5.0))),
        alignment: FractionalOffset.center,
        child: const Image(image: AssetImage('images/owel.jpg')),
      ),
    );
  }
}
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.0, on macOS 13.0 22A380 darwin-arm64, locale en-IN)
    • Flutter version 3.10.0 on channel stable at /Users/syncfsuion/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (3 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/syncfsuion/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/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.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.13+0-b1751.21-8125866)

[✓] VS Code (version 1.77.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • 8A87BAFC-018F-4E0E-A920-03406172D1CB • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 13.0 22A380 darwin-arm64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 113.0.5672.92

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.```

</details>