Browse Source

Merge branch 'develop' of git.kdan.cc:Mac_PDF/PDF_Office into develop

tangchao 1 year ago
parent
commit
aa6333f3d4

+ 13 - 0
PDF Office/PDF Master/Class/ChromiumTabs/src/Tab Strip/CTTabStripView.m

@@ -52,6 +52,19 @@ static BOOL ShouldWindowsMiniaturizeOnDoubleClick() {
     [self removeObserverForAppearanceChange];
 }
 
+- (void)mouseDown:(NSEvent *)event {
+    if (event.clickCount == 2) {
+        BOOL isMaximized = self.window.zoomed;
+        if (isMaximized) {
+            [self.window zoom:nil];
+        } else {
+            [self.window zoom:nil];
+        }
+    } else {
+        [super mouseDown:event];
+    }
+}
+
 - (id)initWithFrame:(NSRect)frame {
 	self = [super initWithFrame:frame];
 	if (self) {