Skip to content

Commit bed14b6

Browse files
authored
Fix double click on header to expand window (#650)
In the `hitTest` of the toolbar item view we need to continue the loop iteration when we find a `NSTextField` but it not enabled and selectable Fixes #556
1 parent 813ea9d commit bed14b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GitUp/Application/ToolbarItemWrapperView.m

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ - (NSView*)hitTest:(NSPoint)point {
2727
if (field.enabled && field.selectable) {
2828
return hit;
2929
}
30+
31+
// We recognised the view but it is not enabled and selectable, so we need to break this loop iteration
32+
continue;
3033
}
3134

3235
if ([child isKindOfClass:[NSControl class]]) {

0 commit comments

Comments
 (0)