OSDN Git Service

3本指スワイプで連合艦隊表示を切り替えられるようにした
authormasakih <masakih@users.sourceforge.jp>
Sat, 5 Dec 2015 10:43:57 +0000 (19:43 +0900)
committermasakih <masakih@users.sourceforge.jp>
Sat, 5 Dec 2015 10:43:57 +0000 (19:43 +0900)
KCD/HMBroserWindowController.m

index a0ea610..bf5c062 100644 (file)
@@ -340,6 +340,15 @@ static NSString *loginPageURLPrefix = @"https://www.dmm.com/my/-/login/=/";
        
 }
 
+- (void)swipeWithEvent:(NSEvent *)event
+{
+       if([event deltaX] > 0) {
+               [self showCombinedView];
+       }
+       if([event deltaX] < 0) {
+               [self hideCombinedView];
+       }
+}
 
 #pragma mark - Combined view
 - (IBAction)showHideCombinedView:(id)sender