Skip to content

Commit

Permalink
fix(window/apple): it may no longer be required to propagate events f…
Browse files Browse the repository at this point in the history
…rom the superview to the webview
  • Loading branch information
heapwolf committed Feb 1, 2025
1 parent 248c3f4 commit c9f0f47
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/runtime/window/apple.mm
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,6 @@ - (void) layoutIfNeeded {
}

- (void) sendEvent: (NSEvent*) event {
if (event.type == NSEventTypeLeftMouseDown || event.type == NSEventTypeLeftMouseDragged) {
if (event.type == NSEventTypeLeftMouseDown) {
[self.webview mouseDown: event];
}

if (event.type == NSEventTypeLeftMouseDragged) {
[self.webview mouseDragged: event];
return;
}
}

[super sendEvent: event];
}
#endif
Expand Down

0 comments on commit c9f0f47

Please sign in to comment.