mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[macos] fix bug 51040
This commit is contained in:
@ -660,6 +660,18 @@ static NSString * const kASCTabsMulticastDelegateKey = @"asctabsmulticastDelegat
|
||||
}
|
||||
}
|
||||
|
||||
- (void)otherMouseDown:(NSEvent *)event {
|
||||
// [super otherMouseDown:event];
|
||||
|
||||
NSPoint dragPoint = [self.tabsView convertPoint:event.locationInWindow fromView:nil];
|
||||
for (ASCTabView * tab in self.tabs) {
|
||||
if (NSPointInRect(dragPoint, [tab frame])) {
|
||||
[self tabDidClose: tab];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)addTab:(ASCTabView *)tab {
|
||||
[self addTab:tab selected:YES];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user