Skip to content

[3.24.3] Drag / Hover not working on latest Chrome - Flutter Web after upgrading to macOS 15 #155987

@mikeb2k

Description

@mikeb2k

Steps to reproduce

Hover on buttons does not work (no animation change or cursor type change), dragging with mouse pressed down produces said exception as well.

All of this works on Safari but not latest Chrome - Version 129.0.6668.71 (Official Build) (arm64)

Expected results

No exception

Actual results

Uncaught DartError: Unexpected null value.
    at Object.throw_ [as throw] (errors.dart:296:3)
    at Object.nullCheck (operations.dart:606:18)
    at Object.computeEventOffsetToTarget (event_position_helper.dart:28:70)
    at [_convertEventsToPointerData] (pointer_binding.dart:1071:30)
    at pointer_binding.dart:1010:9
    at pointer_binding.dart:948:7
    at loggedHandler (pointer_binding.dart:541:9)
    at Object._callDartFunctionFast1 (js_allow_interop_patch.dart:188:27)
    at ret (js_allow_interop_patch.dart:81:15)

Code sample

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      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(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: SingleChildScrollView(
        child: Center(
          child: Column(
              children: List.generate(
            100,
            (index) => FilledButton(onPressed: () {}, child: Text("Button $index")),
          )),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration Screenshot 2024-10-01 at 12 13 28

Logs

Logs
Uncaught DartError: Unexpected null value.
    at Object.throw_ [as throw] (errors.dart:296:3)
    at Object.nullCheck (operations.dart:606:18)
    at Object.computeEventOffsetToTarget (event_position_helper.dart:28:70)
    at [_convertEventsToPointerData] (pointer_binding.dart:1071:30)
    at pointer_binding.dart:1010:9
    at pointer_binding.dart:948:7
    at loggedHandler (pointer_binding.dart:541:9)
    at Object._callDartFunctionFast1 (js_allow_interop_patch.dart:188:27)
    at ret (js_allow_interop_patch.dart:81:15)

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0 24A335 darwin-arm64, locale en-SK)
    • Flutter version 3.24.3 on channel stable at /Users/michaelbardon/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (3 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/michaelbardon/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.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.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 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.93.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.98.0

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.0 24A335 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.0 24A335 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 129.0.6668.60

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consolee: OS-version specificAffects only some versions of the relevant operating systemplatform-macBuilding on or for macOS specificallyplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions