File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
shell/platform/darwin/macos/framework/Source Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515
1616namespace flutter {
1717
18- typedef struct {
18+ struct DartCallbackRepresentation {
1919 std::string name;
2020 std::string class_name;
2121 std::string library_path;
22- } DartCallbackRepresentation ;
22+ };
2323
2424class DartCallbackCache {
2525 public:
Original file line number Diff line number Diff line change @@ -404,11 +404,11 @@ - (void)dispatchMouseEvent:(NSEvent*)event phase:(FlutterPointerPhase)phase {
404404 NSPoint locationInBackingCoordinates = [self .view convertPointToBacking: locationInView];
405405 FlutterPointerEvent flutterEvent = {
406406 .struct_size = sizeof (flutterEvent),
407- .device_kind = kFlutterPointerDeviceKindMouse ,
408407 .phase = phase,
408+ .timestamp = static_cast <size_t >(event.timestamp * NSEC_PER_MSEC),
409409 .x = locationInBackingCoordinates.x ,
410410 .y = -locationInBackingCoordinates.y , // convertPointToBacking makes this negative.
411- .timestamp = static_cast < size_t >(event. timestamp * NSEC_PER_MSEC) ,
411+ .device_kind = kFlutterPointerDeviceKindMouse ,
412412 // If a click triggered a synthesized kAdd, don't pass the buttons in that event.
413413 .buttons = phase == kAdd ? 0 : _mouseState.buttons ,
414414 };
You can’t perform that action at this time.
0 commit comments