Repository: flutter
Issue: GestureDetector's onScaleUpdate does not differentiate between horizontal and vertical scaling on Windows
Labels: framework,platform-windows,d: api docs,f: gestures,a: desktop,P2,team-windows,triaged-windows

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run` on the code sample (on a Windows Laptop)<!-- (see "Code sample" section below) -->
2. Start a zooming gesture. Make sure you zoom horizontally more then vertically. <!-- describe steps to demonstrate bug -->
3. Have a look at the logs. <!-- for example "Tap on X and see a crash" -->

**Expected results:** `horizontalScale` should be different then `verticalScale`<!-- what did you want to see? -->

**Actual results:** `horizontalScale` and `verticalScale` are the same<!-- what did you see? -->

This seems to be only a problem on Windows devices (touchscreen and trackpad). On my android phone it works as expected. 

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

(Copied from https://github.com/flutter/flutter/issues/59247#issuecomment-748072672)

```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: 'Material App',
      theme: ThemeData.dark(),
      home: const Home(),
    );
  }
}

class Home extends StatelessWidget {
  const Home({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Material App Bar'),
      ),
      body: Center(
        child: GestureDetector(
          onScaleUpdate: (val) {
            print(val);
          },
          child: Image.network('https://i.imgur.com/QCNbOAo.png'),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        child: const Icon(Icons.add),
        onPressed: () {},
      ),
    );
  }
}
```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue. If there is a crash, please include
      the entirety of the crash log including the backtrace.
-->

```
flutter: ScaleUpdateDetails(focalPoint: Offset(-205.5, -103.5), localFocalPoint: Offset(-525.5, -169.2), scale: 2.409745216369629, horizontalScale: 2.409745216369629, verticalScale: 2.409745216369629, rotation: 0.0, pointerCount: 1, focalPointDelta: Offset(-4.3, -2.2))
flutter: ScaleUpdateDetails(focalPoint: Offset(-208.5, -104.9), localFocalPoint: Offset(-528.5, -170.7), scale: 2.4155378341674805, horizontalScale: 2.4155378341674805, verticalScale: 2.4155378341674805, rotation: 0.0, pointerCount: 1, focalPointDelta: Offset(-3.0, -1.5))
flutter: ScaleUpdateDetails(focalPoint: Offset(-212.8, -107.1), localFocalPoint: Offset(-532.8, -172.9), scale: 2.424056053161621, horizontalScale: 2.424056053161621, verticalScale: 2.424056053161621, rotation: 0.0, pointerCount: 1, focalPointDelta: Offset(-4.3, -2.2))
flutter: ScaleUpdateDetails(focalPoint: Offset(-218.6, -110.0), localFocalPoint: Offset(-538.6, -175.7), scale: 2.4353017807006836, horizontalScale: 2.4353017807006836, verticalScale: 2.4353017807006836, rotation: 0.0, pointerCount: 1, focalPointDelta: Offset(-5.7, -2.9))
flutter: ScaleUpdateDetails(focalPoint: Offset(-222.9, -112.1), localFocalPoint: Offset(-542.9, -177.9), scale: 2.4438209533691406, horizontalScale: 2.4438209533691406, verticalScale: 2.4438209533691406, rotation: 0.0, pointerCount: 1, focalPointDelta: Offset(-4.3, -2.2))
flutter: ScaleUpdateDetails(focalPoint: Offset(-223.0, -112.0), localFocalPoint: Offset(-543.0, -177.8), scale: 2.4438209533691406, horizontalScale: 2.4438209533691406, verticalScale: 2.4438209533691406, rotation: 0.0, pointerCount: 1, focalPointDelta: Offset(-0.1, 0.1))
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
Analyzing example...                                                    

   info - Avoid `print` calls in production code - lib\main.dart:97:13 -  
          avoid_print

1 issue found. (ran in 2.9s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version
    10.0.22621.1105], locale de-DE)
    • Flutter version 3.3.10 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (5 weeks ago), 2022-12-15 07:36:55
      -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version
    33.0.1)
    • Android SDK at C:\Users\Maximilian\AppData\Local\Android\sdk        
    • Platform android-33, build-tools 33.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe     

[√] Visual Studio - develop for Windows (Visual Studio Build Tools 2022   
    17.4.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual
      Studio\2022\BuildTools
    • Visual Studio Build Tools 2022 version 17.4.33205.214
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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.74.3)
    • VS Code at C:\Users\Maximilian\AppData\Local\Programs\Microsoft VS  
      Code
    • Flutter extension version 3.56.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows    
      [Version 10.0.22621.1105]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome        
      109.0.5414.75
    • Edge (web)        • edge    • web-javascript • Microsoft Edge       
      108.0.1462.54

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->