Skip to content

Commit

Permalink
Remove potentially confusing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gleitman committed Jun 26, 2024
1 parent 5a7a39e commit 3866165
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/react-native/Libraries/Text/Text/RCTTextView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,8 @@ - (void)mouseExited:(NSEvent *)event

- (void)mouseMoved:(NSEvent *)event
{
[self updateHoveredSubviewWithEvent:event];

// As of the time of writing (2024-06-25), the latest versions of Safari, Firefox, Chrome, and Edge
// all run mousemove events from the innermost component outwards. While we don't have full support
// for mousemove events in react-native-macos yet, performing our internal updates before invoking
// the superclass is more aligned to this apparent Web behavior.
[super mouseMoved:event];
[self updateHoveredSubviewWithEvent:event];
}

- (void)updateHoveredSubviewWithEvent:(NSEvent *)event
Expand Down

0 comments on commit 3866165

Please sign in to comment.