summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 18:37:32 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 18:37:32 +0000
commit94b04d86dc8436de908086a34a9d526bb3348f45 (patch)
tree9bf6f32091b19fc6d64252333b2b0742ac8d7c6d
parentb8a0f8fa16d3a0b426fb80dd8eae280fff05b7b1 (diff)
downloadchromium_src-94b04d86dc8436de908086a34a9d526bb3348f45.zip
chromium_src-94b04d86dc8436de908086a34a9d526bb3348f45.tar.gz
chromium_src-94b04d86dc8436de908086a34a9d526bb3348f45.tar.bz2
Mac: Let three-finger-down end tabpose as well.
Requested by stevegerak, and matches the four-finger-swipe exposé gesture. BUG=50307 TEST=both three-finger-up and three-finger-down exit tabpose Review URL: http://codereview.chromium.org/3342005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58384 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/cocoa/tabpose_window.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/tabpose_window.mm b/chrome/browser/cocoa/tabpose_window.mm
index 50c101b..548d7dd 100644
--- a/chrome/browser/cocoa/tabpose_window.mm
+++ b/chrome/browser/cocoa/tabpose_window.mm
@@ -981,7 +981,7 @@ void AnimateCALayerFrameFromTo(
}
- (void)swipeWithEvent:(NSEvent*)event {
- if ([event deltaY] > 0.5) // Swipe up
+ if (abs([event deltaY]) > 0.5) // Swipe up or down.
[self fadeAway:([event modifierFlags] & NSShiftKeyMask) != 0];
}