Skip to content

Commit 00827a2

Browse files
trop[bot]nmggithub
andauthored
fix: always call the original impl in swizzled mousedown impls (#50355)
fix: always call the original implementation in swizzled mousedown implementations Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Noah Gregory <noahmgregory@gmail.com>
1 parent 5f020c4 commit 00827a2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

shell/browser/ui/cocoa/electron_ns_window.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ - (void)swiz_nsthemeframe_mouseDown:(NSEvent*)event {
8787
(electron::NativeWindowMac*)[(id)self.window shell];
8888
if (shell && !shell->has_frame())
8989
[self cr_mouseDownOnFrameView:event];
90-
g_nsthemeframe_mousedown(self, @selector(mouseDown:), event);
9190
}
91+
g_nsthemeframe_mousedown(self, @selector(mouseDown:), event);
9292
}
9393

9494
- (void)swiz_nsnextstepframe_mouseDown:(NSEvent*)event {
@@ -98,8 +98,8 @@ - (void)swiz_nsnextstepframe_mouseDown:(NSEvent*)event {
9898
if (shell && !shell->has_frame()) {
9999
[self cr_mouseDownOnFrameView:event];
100100
}
101-
g_nsnextstepframe_mousedown(self, @selector(mouseDown:), event);
102101
}
102+
g_nsnextstepframe_mousedown(self, @selector(mouseDown:), event);
103103
}
104104

105105
- (void)swiz_nsview_swipeWithEvent:(NSEvent*)event {

0 commit comments

Comments
 (0)