Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ui/plugins/callback_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

namespace flutter {

typedef struct {
struct DartCallbackRepresentation {
std::string name;
std::string class_name;
std::string library_path;
} DartCallbackRepresentation;
};

class DartCallbackCache {
public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,11 @@ - (void)dispatchMouseEvent:(NSEvent*)event phase:(FlutterPointerPhase)phase {
NSPoint locationInBackingCoordinates = [self.view convertPointToBacking:locationInView];
FlutterPointerEvent flutterEvent = {
.struct_size = sizeof(flutterEvent),
.device_kind = kFlutterPointerDeviceKindMouse,
.phase = phase,
.timestamp = static_cast<size_t>(event.timestamp * NSEC_PER_MSEC),
.x = locationInBackingCoordinates.x,
.y = -locationInBackingCoordinates.y, // convertPointToBacking makes this negative.
.timestamp = static_cast<size_t>(event.timestamp * NSEC_PER_MSEC),
.device_kind = kFlutterPointerDeviceKindMouse,
// If a click triggered a synthesized kAdd, don't pass the buttons in that event.
.buttons = phase == kAdd ? 0 : _mouseState.buttons,
};
Expand Down