Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,14 @@ - (void)mouseExited:(NSEvent *)event
[self emitMouseEvent:MouseLeave];
}

- (void)mouseDown:(NSEvent *)event
{
// Accept mouseDown: the surface's touch handler, a gesture recognizer, has already taken the
// press. NSView's default passes it on to an overlapping sibling view beneath the point, and a
// text field there starts a tracking loop that consumes the mouseUp, so a button drawn over a
// TextInput would never be pressed.
}

- (void)mouseUp:(NSEvent *)event
{
BOOL hasDoubleClickEventHandler = _props->hostPlatformEvents[HostPlatformViewEvents::Offset::DoubleClick];
Expand Down