]> granicus.if.org Git - transmission/commitdiff
#3637 Swipe to change inspector tab
authorMitchell Livingston <livings124@transmissionbt.com>
Fri, 15 Oct 2010 23:38:11 +0000 (23:38 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Fri, 15 Oct 2010 23:38:11 +0000 (23:38 +0000)
macosx/InfoWindowController.m

index 8c1b848cc9431c6e265558c83bce9fd61e1af640..03766025798c14182c6784a67c98773e91010926 100644 (file)
@@ -501,4 +501,12 @@ typedef enum
         [self resetInfo];
 }
 
+- (void) swipeWithEvent:(NSEvent *) event
+{
+    if ([event deltaX] < 0.0)
+        [self setNextTab];
+    else if ([event deltaX] > 0.0)
+        [self setPreviousTab];
+}
+
 @end